GraphQL Logo GraphQL

Ocelot does not directly support GraphQL, but many people have asked about it. We wanted to show how easy it is to integrate the GraphQL for .NET library.

Sample

Please see the sample project Ocelot.Samples.GraphQL. Using a combination of the graphql-dotnet project and Ocelot Delegating Handlers feature, this is pretty easy to do. However, we do not intend to integrate more closely with GraphQL at the moment. Check out the sample’s README.md for detailed instructions on how to do this.

Future

If you have sufficient experience with GraphQL and the mentioned .NET graphql-dotnet package, we would welcome your contribution to the sample. octocat

Who knows, maybe you will get inspired by the sample development and come up with a design solution in the form of a rough draft of a GraphQL feature to implement in Ocelot. Good luck! And welcome to the Discussions space of the repository!