You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be awesome to be able to add some more "parent" types to the SchemaDocumentation component, the way we have querymutation and subscription.
My schema currently has a _typemap which gets displayed in the All Schema Types though the ability to categorize that would be great, like in the example below. These map to the exisiting GraphQL types like GraphQLObjectTypeGraphQLEnumType``GraphQLInputObjectType etc.
Essentially I'd like a feature where we can categorize the types further and not just the ones in const ignoreTypesInAllSchema = [ queryType?.name, mutationType?.name, subscriptionType?.name, ];
I think we have a lot of the functionality for this already in place! Maybe a categorizeAllTypes / assignAllTypesToRoot type of prop could do the trick.
Example solution
The text was updated successfully, but these errors were encountered:
oh, and as a small note -- I'm imagining this would get passed in through DocExplorer so we can render the DocExplorer with this type of Schema Documentation! Clarifying in case I wasn't clear earlier
@markbenliyan indeed! we will soon move doc explorer to it's own plugin as originally proposed in 2019, but you could start with a PR to graphiql and @graphiql/react
Would be awesome to be able to add some more "parent" types to the SchemaDocumentation component, the way we have
query
mutation
andsubscription
.My schema currently has a
_typemap
which gets displayed in theAll Schema Types
though the ability to categorize that would be great, like in the example below. These map to the exisiting GraphQL types likeGraphQLObjectType
GraphQLEnumType``GraphQLInputObjectType
etc.Essentially I'd like a feature where we can categorize the types further and not just the ones in
const ignoreTypesInAllSchema = [ queryType?.name, mutationType?.name, subscriptionType?.name, ];
I think we have a lot of the functionality for this already in place! Maybe a
categorizeAllTypes / assignAllTypesToRoot
type of prop could do the trick.Example solution
The text was updated successfully, but these errors were encountered: