-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add item to edge of node #55
Comments
Hi @tabakd! The generated schema looks like this:
You can also use the built in GraphiQL IDE to explore the schema. _Add a new Deck:_
The response is:
_Add a slide:_
The response is:
_Using the slides id, we can change the slides of a deck to include it:_
Response:
There is no easier way currently to append an item to a list. We can add this feature request to our list, or you can send in a PR ;). |
Hm. When I try to update the deck with a slide array it replaces all the slides rather than adds it to the list. Pull Request it is :) What piece of code should I be looking at? |
@tothandras Forgive me, I've been banging my head for a while here, but how would you do this with one mutation? As in add a slide to the database and add it to the array of slides as well? |
@Secretmapper You can only do it using two mutations. First you create a slide, then for the other mutation you need to use the returned |
I'm trying to add a Slide to a Deck's array of Slides but I can't seem to find a mutation that works. Below is my Mongoose schema.
The text was updated successfully, but these errors were encountered: