nrc / graphql

A Rust GraphQL server framework
Apache License 2.0
236 stars 12 forks source link

Share code with Juniper #24

Open nrc opened 6 years ago

nrc commented 6 years ago

Juniper is an alternate GraphQL server implementation. It has a very different approach to specifying the API, but I imagine we could share a bunch of the internals code.

cc @theduke

shuaizhiwen commented 6 years ago

So is the starting point of the two projects the same thing as what they are going to do? Or will I only use one in the future? Or is the current project better able to do graphql related things?

nrc commented 6 years ago

The two projects are trying to do the same thing - provide a GraphQL server in Rust - but the UI for that is very different - Juniper starts with Rust types with annotations whereas this project starts with the GraphQL schema.

I would recommend using Juniper tbh, I have not had a lot of time to work on this and it is still missing a lot of features.

theduke commented 6 years ago

Personally I also wanted the "schema first" way as an alternative for Juniper, even before @nrc published graphql.

Ideally we would find a way to merge the projects and work together on a single solution.

massimiliano-mantione commented 6 years ago

Just at 1st sight, wouldn't it be possible to adapt the schema! macro from this project to emit annotated types for Juniper? In which other ways (apart from the "schema 1st" approach) is this project different from Juniper?