Graphql-dotnet: Extend Introspection Schema

Created on 17 Nov 2020  路  3Comments  路  Source: graphql-dotnet/graphql-dotnet

Currently I am building forms dynamically with introspection, but I have a limitation where I need to get the validation rules, I achieved this by extending the regular type schema with validation rules but it feels dirty and could be coming from the __type query instead if I had the ability to extend this schema.

Is there anyway to extend the introspection schema with new fields?

question

All 3 comments

Is there anyway to extend the introspection schema with new fields?

The formal answer is yes if you fork this repo. In fact, this brings a number of problems. See #1451 .

@Jonatthu Now we _can_ extend introspection response even if it goes "against" (well, not actually) official spec. See https://github.com/graphql-dotnet/graphql-dotnet/blob/develop/docs2/site/docs/migrations/migration4.md#experimental-features--applied-directives and https://github.com/graphql-dotnet/graphql-dotnet/blob/develop/src/GraphQL/ExperimentalFeatures.cs . Closing this. Feel free to ask further questions opening new issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ildoc picture ildoc  路  4Comments

dimortizp picture dimortizp  路  3Comments

fiyazbinhasan picture fiyazbinhasan  路  3Comments

tcetin picture tcetin  路  3Comments

VladimirAkopyan picture VladimirAkopyan  路  4Comments