neo4j-graphql-js
neo4j-graphql-js copied to clipboard
_id for Apollo implementation of GraphQL does not work
Thanks for this awesome tool. The auto generation of CRUD capabilities has made my life a lot easier. One issue I'm having is on Update and Deletion of nodes. It took me some time to figure it out but it seems that Apollo (at least the Apollo playground) doesn't like the use of _id: ID! within the schema, but is happy to accept _id: ID. I believe this was covered in another issue.
To work around this I had to create 2 fields, _id: ID and id: ID!. It seems that I will then need to somehow force id to have the same value as _id. But this defeats the purpose of the autogenerated CRUD capabilities. It would be great if there was a was to get this work for Apollo.
Why is this issue closed? I found myself dealing with the same problem in my project. Is there a well-defined way to use the auto-generated _id's with the GraphQL ID type?
https://github.com/neo4j-graphql/neo4j-graphql-js/issues/608