Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is GraphQL valid GraphQL+?

Tags:

graphql

dgraph

The following is true:

Javascript == Typescript
Typescript != Javascript

Can the same be said for Dgraph's GraphQL+?

GraphQL == GraphQL+
GraphQL+ != GraphQL

The reason for asking, I understand that GraphQL is not sufficient for Dgraph's goals. But does it process GraphQL if needed?

like image 874
Bob van Luijt Avatar asked Jul 22 '17 19:07

Bob van Luijt


People also ask

What are the valid GraphQL operations?

There are three types of operations that GraphQL models: query – a read‐only fetch. mutation – a write followed by a fetch. subscription – a long‐lived request that fetches data in response to source events.

Why is GraphQL called GraphQL?

The fields in our GraphQL query (i.e. book, authors, name) specify which edges should be followed in the application data graph to get our desired result. This is where GraphQL gets its name: GraphQL is a query language that traverses your data graph to produce a query result tree.

Is GraphQL obsolete?

The conclusion to all of this is a simple statement – no, GraphQL is not made obsolete by HTTP/2.


2 Answers

To add to Sergio's answer, GraphQL+- is not fully compatible with GraphQL. We liked GraphQL and used that as a basis for a new graph query language.

However, I think we would likely look at how big of a gap is between GraphQL+- and GraphQL, and if can be bridged, we would (probably close to or after v1.0).

like image 80
Manish Jain Avatar answered Nov 22 '22 22:11

Manish Jain


The first paragraph on their landing page reads:

We’ve modified the language to better support graph operations, adding and removing features

And also this

GraphQL+- is a work in progress. We’re adding more features and we might further simplify existing ones.

This means that these languages are incompatible. Similar, yes, but each have unique features.

like image 38
Sergio Tulentsev Avatar answered Nov 22 '22 23:11

Sergio Tulentsev