GraphQL Logo GraphQL

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

Please see the sample project OcelotGraphQL. Using a combination of the graphql-dotnet project and Ocelot Delegating Handlers features, this is pretty easy to do. However we do not intend to integrate more closely with GraphQL at the moment. Check out the samples and that should give you enough instruction on how to do this!


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

Who knows, maybe you’ll get inspired by the sample development and come up with some design solution in the form of a rough draft of GraphQL feature to implement in Ocelot. Good luck!

And, welcome to Discussions space of the repository!