I installed the C# Dgraph gRPC client and DQL queries/mutations work. But is it possible to send GraphQL queries?

I installed the C# Dgraph gRPC client and sending DQL queries/mutations work. But is it possible to send GraphQL queries/mutations?

Should i only use DQL and not mix it with GraphQL or what? The Dgraph C# client can’t read GraphQL?

Hi @Tabaxa_Ddhbi and welcome to dgraph community.

Generally in order to send GraphQL request you need a GraphQL client. Some examples are: Altair, GraphiQL and also in C# you can use this library.

You can use both dql and GraphQL at the same time(You should upload GraphQL schema).
Your Dgraph C# is a grpc client and you are not able to make GraphQL requests with that.

Another thing that you should keep in mind is that you can use GraphQL to serve your clients(You can also authenticate and authorize them easily) directly.

1 Like

Thanks for your fast reply @pshaddel ! Will have a look at https://github.com/graphql-dotnet/graphql-client

1 Like