The road to graphql


Hi devs,

I quickly wanted to share the progress of our road to a graphql api.
Most of the scaffolding work to be able to query the API has been merged (thanks to @Ondrej_Prazak!). The only PR still missing is the one that defines connections (basically relationships between models).

We’ll start opening merge requests to add more queries next week. To make it easy to review the PRs we’ll do a separate PR for each rails model (when it makes sense). I encourage everyone who wants to get familiar with the API to review the PRs. Once the PRs are open and you have a lot of example code to choose from, feel free to extend the API yourself. I’m happy to review the PRs. In my opinion, it’s a tiny little bit simpler than the apipie and rabl approach from APIv2.

The next step would be to add Mutations, these are basically POST/UPDATE/DELETE queries in a REST api. We also have a scaffolding PR open for that.

Please see the tracker issue on Redmine for more details:

I’m also looking forward to seeing the API being used on the client side. Please note, that we agreed to consider the API as experimental for now.

If you have any questions or comments, just let me know.