neo4j-graphql / neo4j-graphql-js

NOTE: This project is no longer actively maintained. Please consider using the official Neo4j GraphQL Library (linked in README).
Other
608 stars 148 forks source link

Collisions in generated mutations if a graphql type has a field and schema has another type which name consists of previously mentioned type and field #591

Open timurgen opened 3 years ago

timurgen commented 3 years ago

GraphQL schema to reproduce

type Document {
    id: String!
    title: String!
    type: [DocumentType] @relation(name: "HAS_TYPE", direction: OUT)
}

type DocumentType {
    id: String!
    label: String!
}

Mutation MergeDocumentType to ensure item of DocumentType type exists in database will be overridden by mutation to ensure relations between Document and DocumentType

michaeldgraham commented 3 years ago

https://github.com/neo4j-graphql/neo4j-graphql-js/issues/608