Graphql-js: printType function to get GraphQLSchema object as a query string

Created on 13 Aug 2018  路  1Comment  路  Source: graphql/graphql-js

Hi everyone,
I've been struggling to mix Graphql query language with GraphQLObjectType in makeExecutableSchema and I realized at the moment there is not any neat way to do so.

However, there is a function to print the schema object which is printSchema and I wonder if there is any functionality like a printType function or any other solution to implement such a transformation from GraphQLObjectType to Graphql query language?

Thanks

Most helpful comment

I wonder if there is any functionality like a printType function or any other solution to implement such a transformation from GraphQLObjectType to Graphql query language?

https://github.com/graphql/graphql-js/blob/7cfd6865cebdca1c1760246a5c132babb791b7d7/src/index.js#L359-L360

>All comments

I wonder if there is any functionality like a printType function or any other solution to implement such a transformation from GraphQLObjectType to Graphql query language?

https://github.com/graphql/graphql-js/blob/7cfd6865cebdca1c1760246a5c132babb791b7d7/src/index.js#L359-L360

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pranshuchittora picture pranshuchittora  路  3Comments

sudheerj picture sudheerj  路  3Comments

gjuchault picture gjuchault  路  4Comments

davide-ganito picture davide-ganito  路  4Comments

rafgraph picture rafgraph  路  4Comments