Hello guys! I understand what an interface and nod...
# orm-help
a
Hello guys! I understand what an interface and node represent in Prisma, but I don't understand the utility of the node field inside of a query type. See below:
Copy code
type Query {
    node(id: ID!): Node
    ....
}
I saw this code in
prisma.graphql
file generated by
prisma-client
library. Thanks in advance.
h
Hi,
This should not get generated, can you please share your datamodel?
a
Hi @Harshit My datamodel is made up of many (almost 20) files, but I assure you that those files satisfy Prisma's rules.
h
If this generation is not giving you any problem, you can safely ignore it.
a
graphqlgen
library doesn't like this node field, ( it give me this error:
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'map' of undefined
). If I comment this line in
prisma.graphql
,
graphqlgen
works like a charm, but I don't understand what this node field does.