Errol Hassall
Errol Hassall

Reputation: 416

Mapping Graphql to Grahpql+- (Dgraph version)

I am using Dgraph and Postgres as my databases. I am using elixir with ecto to handle the graphql implementation from the frontend to the postgres db. I now need to map graphql queries to dgraph's version of graphql (graphql+-) so that I can use the power of graphql to get only the data I need. Is the best way to map graphql to graphql+- and how would you even do that? or is there another way to do it. I have tried to pass graphql queries directly to dgraph but as you can imagine that doesn't work. Is there another way that I haven't thought about?

Upvotes: 0

Views: 248

Answers (1)

Ondrej Slinták
Ondrej Slinták

Reputation: 31970

At this moment, I don't think so. GraphQL+- doesn't support all of GraphQL featues, so you'll have to write a transformer from GraphQL to GraphQL+-.

From official docs:

We’ve modified the language to better support graph operations, adding and removing features to get the best fit for graph databases.

Upvotes: 1

Related Questions