/GraphQL.Tool.Embedded

Library of GraphQL tools such as GraphQL Playground and GraphQL Voyager

Primary LanguageCSSMIT LicenseMIT

GraphQL.Tool.Embedded

Library of GraphQL tools such as GraphQL Playground and GraphQL Voyager.

Build Status Nuget Status

Usage

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);
});