aws / aws/aws-appsync-community

Support GraphQL `oneOf` input directives in AppSync?

Open
#342 4 comments 23 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
507
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Are there any current plans to support the new [GraphQL `oneOf` directives](https://github.com/graphql/graphql-spec/pull/825) for input objects in AppSync?

Some other GraphQL libraries are starting to roll out support for these, e.g. [support appears to be implemented in Apollo's kotlin client](https://github.com/apollographql/apollo-kotlin/issues/5431). They're very useful for typing queries where inputs have mutually-exclusive and/or dependently-required optional properties, since union types are not and it seems [will not be](https://github.com/graphql/graphql-spec/issues/627) supported for inputs.

It looks like there's something of a consensus forming around `oneOf`, so it'd be great to have an issue we can follow regarding support in AppSync.

Contributor guide

Open the contributing guide

Research direction

No repository files, tests, or implementation entry points are identified. Start by reading the linked GraphQL oneOf proposal and comparing it with AppSync's current input-object support; done would require an accepted implementation scope or a documented AppSync support decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, graphql
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.