Skip to content

v2.0.0 Release

Latest
Compare
Choose a tag to compare
@josephwoodward josephwoodward released this 27 Mar 19:26
· 2 commits to master since this release
b420013
  • #44 - Upgraded to the latest version of GraphiQL which includes some new features.
  • GraphQL API route and/or GraphiQL UI address can now be configured via Options using the IoC container
  • #42 - Added a delegate that's executed before a request is resolved enabling options such as authentication, see these test for an example.
services.AddGraphiQl(x => x.IsAuthenticated = context =>
{
    context.Response.Clear();
    context.Response.StatusCode = 400;
    context.Response.WriteAsync("This page requires authentication");

    return Task.FromResult(false);
});