β02-12-2020 03:51 AM
Hi all,
I need to get all the schema that I push on Neo4j database, I'm using 'CALL graphql.schema()' but it doesn't fit my desire.
This procedure just return all the Node and Relationship schema, and I need ENUM and MUTATION also.
Are there any ways to get those information from Neo4j?
Solved! Go to Solution.
β02-12-2020 09:12 AM
You can find out about GraphQL introspection here
https://graphql.org/learn/introspection/
Iβm glad I could help.
β02-12-2020 05:27 AM
You wouldn't be getting that information from Neo4j. Enums and mutations are part of the GraphQL layer that you would be using to create your API. To get that information you need to introspect your GraqphQL like:
__type(name: "CountryCodesEnum") {
enumValues{
name
description
}
}
Neo4j does not have mutations, etc. inside of it.
β02-12-2020 08:49 AM
Thank you for your answer,
Could you explain more about 'introspect GraphQL'?
β02-12-2020 09:12 AM
You can find out about GraphQL introspection here
https://graphql.org/learn/introspection/
Iβm glad I could help.
β02-13-2020 03:47 AM
Thank you so much.
I have found the solution based on your suggestions. π