cancel
Showing results for 
Search instead for 
Did you mean: 

How to make Neo4j GraphQL schema Relay compliant?

Raj725
Node Clone

I am trying to make a GraphQL server Relay compliant. I trried to add Node interface in the schema.graphql (as suggested on Relay.dev graphql-server-specification) but I am getting the following error:

Error: Type or Interface with name `Node` reserved to support Relay. See https://relay.dev/graphql/ for more information.

Here is my schema file content:

interface Node {
id: ID!
}

type Product implements Node {
id: ID!
product_name: String!
}

type Query {
Products: [Product]
Product(id: ID!): Product
Node(id: ID!): Node
}

 

I would like to know if it's possible to make the server Relay compliant?

Can we use custom resolvers for that? 

 

0 REPLIES 0