aws / aws-appsync-community

The AWS AppSync community
https://aws.amazon.com/appsync
Apache License 2.0
506 stars 32 forks source link

[JS] Support nullish coalescing assignment operator (??=) #353

Open saltman424 opened 6 months ago

saltman424 commented 6 months ago

According to https://docs.aws.amazon.com/appsync/latest/devguide/supported-features.html, these operators are supported:

  • standard math operators (+, -, /, %, *, etc.)
  • nullish coalescing operator (??)

As it turns out, the assignment version of these operators are only supported for the standard math operators. I.e.

??= is very useful, so it would be great if we could support that as well