aws-appsync-community icon indicating copy to clipboard operation
aws-appsync-community copied to clipboard

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

Open saltman424 opened this issue 2 years ago • 0 comments

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.

  • Supported: +=, -=, /=, %=, *=, etc.
  • Not Supported: ??=

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

saltman424 avatar Feb 23 '24 17:02 saltman424