top | item 17565862

(no title)

jensnockert | 7 years ago

Yes, it's generally quite a bit nicer. It's not as nice as I hoped, but it's better. The old APIs are JSONAPI-style.

The main disappointment is that input types are not nearly as expressive as output types.

discuss

order

supahfly_remix|7 years ago

I'm only familiar with REST and not GraphQL, but this sounds interesting. Just from the name GraphQL sounds like a query language -- how can one do operations that change state (i.e., analogous to PUT/POST) rather than just query it? Thanks.

asimpletune|7 years ago

It’s a QL in the sense that it accepts a client specified schema, that looks how the client wants the data to be returned.

How does it mutate then? SQL can mutate, I’m not sure why this would be any different. Basically, like SQL’s UPDATE, and INSERT, GQL can have “methods” associated with parts of the schema.

the99thguy|7 years ago

The name is a little misleading in that regard. GraphQL has mutations that tell the server to change data rather than just return a query.