aws / aws/aws-appsync-community

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

Open
#353 0 comments 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
HTML
Stars
507
Forks
37
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the AWS AppSync supported-features documentation linked in the issue and the JavaScript runtime's existing support for nullish coalescing and compound assignment operators. Confirm the desired behavior for ??= and identify the runtime or compatibility test entry point; done means ??= is accepted and behaves correctly in AppSync JavaScript resolvers.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.