Demo Projects
General
📌 Custom Directives
Demostrates creating and applying a type system directive and a custom execution directive.
📌 Logging Provider
Demonstrates the creation of a custom ILogProvider
to intercept logging events and writing them to a json file.
📌 Custom Http Processor
Demonstrates overriding the default HTTP Processor to conditionally process entire queries at the ASP.NET level.
📌 Unit Test Framework
An example project that utilizes the test framework nuget package to execute some unit tests against a graph controller using xUnit.
Authentication & Authorization
📌 Field Authorization
Demonstrates fields with authorization requirements and how access denied messages are returned to the client in the various authorization modes.
📌 Firebase Authentication
Demonstrates how to setup a Firebase project and link a GraphQL ASP.NET project to it.
Subscriptions
📌 Subscriptions w/ Azure Service Bus
Demonstrates the use of an external subscription event publisher and a consumer to deserialize and route events.
Use of this demo project requires your own Azure Service Bus namespace.
📌 Subscriptions w/ React & Apollo Client
A sample react application that makes use of the apollo client to connect to a GraphQL ASP.NET server.
Extensions
📌 File Uploads
Demonstrates the use the graphql-multipart-form-spec compliant extension to perform file uploads as part of a graphql query.