iwilsonq / rust-graphql-example

The accompanying project for a tutorial. Uses Rust, Juniper GraphQL Server + Actix, and Diesel ORM.
119 stars 14 forks source link

How to split Root Query #4

Closed kunjee17 closed 4 years ago

kunjee17 commented 4 years ago

Hi, First of Thanks for great example and sorry for dumb question.

I have seen many example and one thing is common there. We always have on Query implementation.

I know that there should be always one root, but I am currently working in project having 100s of queries that got merged eventually. (project is in JS / TS) . How to arrange code in Juniper? Because if we continue like this then Query, Mutation and Subscription will be big fat code base. That can be hard to manage.

I hope I am clear with the question. Please let me know if any other details are required. Thanks :)

kunjee17 commented 4 years ago

Got the answer here. https://github.com/graphql-rust/juniper/issues/646 . I m closing this issue.