Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
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. 😄
All the sessions of the conference are now available online