Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested create and update operations for mutations with MorphTo relationships #900

Open
spawnia opened this issue Aug 7, 2019 · 1 comment
Labels
enhancement A feature or improvement

Comments

@spawnia
Copy link
Collaborator

spawnia commented Aug 7, 2019

It should be possible to create or update models that are related through a MorphTo relationship when issuing a mutation.

The Problem

The create and update operations can not be structured in a straightforward
manner with the current capabilities of GraphQL.

We can either wait for the GraphQL spec to support polymorphic input types
natively or come up with a workaround.

graphql/graphql-spec#114

@spawnia spawnia added the enhancement A feature or improvement label Aug 7, 2019
@spawnia spawnia changed the title Nested create and update for MorphTo relations Nested create and update operations for mutations with MorphTo relationships Aug 7, 2019
@tennox
Copy link

tennox commented Feb 3, 2021

Current related PR:
graphql/graphql-spec#733

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants