The sections below describe the supported feature set of the APPSYNC_JS runtime.
Core features
The following core features are supported.
The following types are supported:
-
numbers
-
strings
-
booleans
-
objects
-
arrays
-
functions
Primitive objects
The following primitive objects of ES and their functions are supported.
The following objects are supported:
-
Object.assign()
-
Object.entries()
-
Object.hasOwn()
-
Object.keys()
-
Object.values()
-
delete
Built-in objects and functions
The following functions and objects are supported.
The following math functions are supported:
-
Math.random()
-
Math.min()
-
Math.max()
-
Math.round()
-
Math.floor()
-
Math.ceil()
Globals
The following global constants are supported:
-
NaN
-
Infinity
-
undefined
Error types
Throwing errors with throw
is not supported. You can return an error by
using util.error()
function. You can include an error in your GraphQL
response by using the util.appendError
function.
For more information, see Error utils.