Thoughts on GraphQL and REST / JSONiq

twitter logo github logo ・1 min read

Hi all,

just a quick thought... let's say you provide a generic endpoint and have JSONiq[1] like query capabilities, which is basically XQuery for JSON based NoSQL document stores. Then probably also a Websocket for maybe "subscribing" for changes on the server.

Isn't it much more powerful to have something like SQL but for tree-structured (int this case JSON) data? At least I think it's much more powerful than what GraphQL provides, but it might lack the tooling support.

That said, you can elegantly combine or round up this approach with a more generic REST API. I think you simply need to know how to serialize your objects to JSON as in GraphQL.

Kind regards and have a nice weekend :-)


twitter logo DISCUSS
Classic DEV Post from Sep 5

What do you wish to know about JavaScript when you were in university?

Johannes Lichtenberger profile image
I'm working on an Open Source temporal NoSQL document storage system called SirixDB written in Java (and a module in Kotlin) in my spare time. now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️