Skip to content

Library of GraphQL tools such as GraphQL Playground and GraphQL Voyager

License

Notifications You must be signed in to change notification settings

ZEXSM/GraphQL.Tool.Embedded

Repository files navigation

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