graphql-go / graphql

An implementation of GraphQL for Go / Golang
MIT License
9.88k stars 840 forks source link

buildClientSchema implementation #541

Open SafeEval opened 4 years ago

SafeEval commented 4 years ago

The reference implementation of GraphQL has a utility function, buildClientSchema, that is missing from this implementation.

The function converts the results of an introspection query to a GraphQLSchema instance.

buildClientSchema is key for schema federation (#492) and stitching (#329, #435), demonstrated by the gatsby-source-graphql package.

Including this function would allow downstream packages to add federation and stitching features, and the creation of GraphQL analysis tools written in Go.

While federation and stitching might be out of scope for this project, the buildClientSchema building block seems within scope, being part of the reference implementation.

Thanks for the great work on this package!

MoritzGruber commented 2 years ago

If someone es is looking for this, there is a external package that does this: https://github.com/jensneuse/graphql-go-tools

jufemaiz commented 1 year ago

If someone es is looking for this, there is a external package that does this: https://github.com/jensneuse/graphql-go-tools

@MoritzGruber any tips there?