Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 997 Bytes

README.md

File metadata and controls

41 lines (33 loc) · 997 Bytes

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