graphql-js icon indicating copy to clipboard operation
graphql-js copied to clipboard

Add utility function to transform types/directives inside GraphQLSchema

Open IvanGoncharov opened this issue 2 years ago • 4 comments

TODO: write a description

Extracted from #1199

IvanGoncharov avatar Aug 10 '21 10:08 IvanGoncharov

Graphql tools has a mapSchema function that seems similar

yaacovCR avatar Aug 11 '21 20:08 yaacovCR

See https://www.graphql-tools.com/docs/schema-directives#full-mapschema-api for further discussion, you can scroll up for some examples.

code is freely available via MIT license I believe to integrate upstream or just for comparison approach

yaacovCR avatar Aug 11 '21 21:08 yaacovCR

Although my personal thought is that in terms of priorities, this has been handled in the package ecosystem and we should focus more in graphql JS on enabling custom execution and incremental delivery (defer/stream)

yaacovCR avatar Aug 11 '21 22:08 yaacovCR

As @IvanGoncharov mentioned, this function could also be used internally to implement extendSchema and lexicographicallySortSchema.

Cito avatar Dec 26 '21 10:12 Cito