Core features - AWS AppSync

Core features

The following core features are supported.

Types

The following types are supported:

  • numbers

  • strings

  • booleans

  • objects

  • arrays

  • functions

Operators

Operators are supported, including:

  • standard math operators (+, -, /, %, *, etc.)

  • nullish coalescing operator (??)

  • Optional chaining (?.)

The following operators are not supported:

  • bitwise operators

  • unary operators (++, --, and ~)

  • void and typeof operators

Statements

The following statements are supported:

  • const

  • let

  • var

  • break

  • else

  • for-in

  • for-of

  • if

  • return

  • switch

  • var

  • spread syntax

The following are not supported:

  • catch

  • continue

  • do-while

  • finally

  • for(initialization; condition; afterthought)

    Note

    The exceptions are for-in and for-of expressions, which are supported.

  • throw

  • try

  • while

  • labeled statements

Literals

The following ES 6 template literals are supported:

  • Multi-line strings

  • Expression interpolation

  • Nesting templates

Functions

The following function syntax is supported:

  • Function declarations are supported.

  • ES 6 arrow functions are supported.

  • ES 6 rest parameter syntax is supported.

Strict mode

Functions operate in strict mode by default, so you don’t need to add a use_strict statement in your function code. This cannot be changed.