graphql toolbox: lots of errors preventing graphql build
closed
Oren Goldberg
introspecting a working schema I found the tool raised these errors that we've never had problems with before: key names aren't allowed to have hyphens or dots or dollar signs.
We don't use dollar signs in our key names, but it raised an issue because somehow there were a bunch of types that I can't explain called IA_Dashboard, IA_Function, IA_Team, IA_UserPrototype, IA_UserSettings, and IA_UserStyles.
Our schema doesn't have any of those types, but somehow they appear in this tool AND they block the build schema button because they have dollar signs, leaving me confused and unsure how to proceed.
jon.giffard@neo4j.com
closed
Thomas Wiss
Hi Oren, sorry to hear that you're having troubles with the introspection.
Does the introspection itself cause the errors? Or is it the output of the introspection (which is the content in the editor) which causes the errors on clicking the submit button?
If it's the latter, please adjust the content in the editor (for instance remove the dollar signs) so it suits your need/use case. The introspection is suppose to be a starting point for your GraphQL type definitions but it does not claim to be perfect and ready to use from the get go.
Oren Goldberg
Thomas Wiss: It's the output of the introspection, when I try to build it, that causes errors. Unfortunately, given that our pre-existing schema has hyphens and dots, adjusting the content isn't an option.
Additionally, I don't even know where those "magic"
IA_*
types even came from, and they are the source of the dollar signs. Do you know where they came from? Are they something to do with the tool or are they somehow hidden in my schema? Can I just delete them?Thomas Wiss
Oren Goldberg: if your schema contains hyphens and dots then I sadly think the introspection tool will not be able to give you a good starting point for your GraphQL type definitions.
Regarding the
IA_*
types: It's the first time I hear of those types. They do not originate from the introspection tool. I assume however some other tool may have created them yet that's just a guess. Since I don't know the source or importance of those types I can't give you any suggestion on deleting them or not.Thomas Wiss
EDIT: You can delete those
IA_*
types in the GraphQL type definitions (the content in the editor when using the GraphQL Toolbox). This will not delete the nodes and relationships in the database. Just wanted to add that in case it's needed. Disregard this if it's not helpful.