Rocket: How to make a GraphQL api using Rocket?

Created on 25 Aug 2018  路  2Comments  路  Source: SergioBenitez/Rocket

Hi,

I was wondering whether there are some projects to use Rocket as an endpoint for hosting an GraphQL application. I searched for crates and found only this: https://github.com/countcain/graphql-rust - which does nothing.

Perhaps you add this as an feature request. I think it would be possible to implement this using Fairings and FromForm, but I feel like my knowledge is too exhausted to implement this.

I wonder whether you guys can help me?

question

Most helpful comment

There's another library out there called Juniper for GraphQL: https://github.com/graphql-rust/juniper

It has an example of using it with Rocket. I haven't personally used it, though, so your mileage may vary.

All 2 comments

There's another library out there called Juniper for GraphQL: https://github.com/graphql-rust/juniper

It has an example of using it with Rocket. I haven't personally used it, though, so your mileage may vary.

Indeed, I believe the defacto answer is juniper.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haheute picture haheute  路  4Comments

kitsuneninetails picture kitsuneninetails  路  4Comments

Hokutosei picture Hokutosei  路  4Comments

PSeitz picture PSeitz  路  3Comments

Ronaldho80 picture Ronaldho80  路  3Comments