ZEXSM / GraphQL.Tool.Embedded

Library of GraphQL tools such as GraphQL Playground and GraphQL Voyager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Library of GraphQL tools such as GraphQL Playground and GraphQL Voyager

License:MIT License


Languages

Language:CSS 47.5%Language:C# 37.6%Language:HTML 14.9%