graphql-kit / graphql-voyager

🛰️ Represent any GraphQL API as an interactive graph
https://graphql-kit.com/graphql-voyager/
MIT License
7.74k stars 514 forks source link

query - but how? #25

Closed VinzentE closed 7 years ago

VinzentE commented 7 years ago

Hi there,

I love the tool! Very nice way of visualizing a schema. I am quite new to GraphQL and run into an issue:

Whenever I try to create some sort of introspection query and copy it into the "custom schema" field, I am presented with different errors like "TypeError: Cannot read property 'map' of undefined", "TypeError: Cannot read property 'types' of undefined" or similar. Even the official examples on http://graphql.org/learn/introspection/ cause errors. The only "valid" result I could get working was with the query https://gist.github.com/craigbeck/b90915d49fda19d5b2b17ead14dcd6da on the github API https://developer.github.com/v4/explorer/

So in other words: How does my introspection query have to look like or comply with to work with graphql-voyager?

Thanks up front!

IvanGoncharov commented 7 years ago

Hi @VinzentE,

How does my introspection query have to look like or comply with to work with graphql-voyager?

You need to clink on Copy Introspection Query link and it will be automatically copied into the clipboard. See this picture: image