Is it possible to get a human readable, nested JSON representation of a GraphQL schema in JavaScript? -


i trying object representation of our graph without writing custom parse output of introspectionquery.

ideally json object had keys of type name , type value in shape of results of query.

i have been playing around graphql/utilities don't find way 1 thing.

any ideas on this?

something this:

import { graphql } 'graphql'; import { introspectionquery } 'graphql/utilities'; import schema '../schema';  export default async function(req, res) {     const result = await graphql(schema, introspectionquery, {}, {}, {});     return res.json(result); } 

outputs schema, it's not visual representation of our data.

found answer here: https://github.com/apis-guru/graphql-voyager

represent graphql api interactive graph. it's time see graph behind graphql. can explore number of public graphql apis our list.

with graphql-voyager can visually explore graphql api interactive graph. great tool when designing or discussing data model. includes multiple example graphql schemas , allows connect own graphql endpoint. waiting for, explore api!


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -