Library of GraphQL tools such as GraphQL Playground and GraphQL Voyager.
Default use
app.UseEndpoints(endpoints =>
{
...
endpoints.MapGraphQLPlayground();
endpoints.MapGraphQLVoyager();
});
Using with settings
app.UseEndpoints(endpoints =>
{
...
// https://github.com/graphql/graphql-playground#settings
var playgroundOptions = PlaygroundOptions
{
...
}
// https://github.com/APIs-guru/graphql-voyager#properties
var voyagerOptions = VoyagerOptions
{
...
}
endpoints.MapGraphQLPlayground("/ui/playground", playgroundOptions);
endpoints.MapGraphQLVoyager("/ui/voyager", VoyagerOptions);
});