adam-cowley / neode

Neo4j OGM for Node.js
MIT License
395 stars 72 forks source link

Connection with neo4j-graphql-js Schema def #80

Open jonasdumas opened 5 years ago

jonasdumas commented 5 years ago

Hello

It would be so powerfull and incredible if your library was able to take the existing graphql schema (Type-Defs) used by neo4j-graphql-js library to automatically set your OGM for graphql mutations and queries. If your library was able to plug on this schema, it would help so much to write custom resolvers on neo4j-graphql-js. Having the time saving of automated queries/filter/etc from neo4j-graphql-js with the time saving when we need to write custom resolvers.

Is there any solution to connect both libraries?

adam-cowley commented 5 years ago

Interesting idea, but it seems a little like a duplication of functionality. The GraphQL plugin will take care of a lot of this already and it'll be a lot easier to write the custom cypher in the type definitions than to modify this library to do the same thing.

It would definitely be interesting to see the two libraries being used together though