Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Nested Mutations #89

Open
YizYah opened this issue Aug 19, 2018 · 3 comments
Open

Nested Mutations #89

YizYah opened this issue Aug 19, 2018 · 3 comments

Comments

@YizYah
Copy link

YizYah commented Aug 19, 2018

I'm proposing and requesting that you implement nested mutations as shown in the neo4j-graphql-server package.

Now that a few key features have been added to neo4j-graphql-js (specifically: [1] support for middlewared generated errors, [2] overwriting and extending of generated mutations; [3] autogeneration of ids) the package can support production servers. But the front end code is complex and laborious, because a Create call must frequently be followed up by a separate Create call to create some other needed type, followed in turn by an Add call connecting the new instances. With a few layers of nesting, this becomes a large burden on the coders.

As my main React coder observed on Wednesday: "There are so many Mutations right now. Maintainability suffers. One of the things I believe GraphQL was trying to solve is currently happening to us. Lol." [He means the need for the multiple calls.]

@btroop
Copy link

btroop commented Feb 8, 2019

Not sure if it's helpful for building out the case for Neo4j to implement, but Graphcool/Prism.io seem to have implemented this in a fairly sophisticated manner.

GraphCool docs

Prisma.io docs

@jonasdumas
Copy link

jonasdumas commented Sep 22, 2019

+1
I love your neo4j-graphql-js library. The main problem we face to use it is with nested mutation (which doesn't exist yet). I saw that you plan to introduce it. Do you have any idea when it'll be available ?

@btroop GraphCool and Prisma doesn't work with neo4j

@michaeldgraham
Copy link
Collaborator

#608

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants