dat2 / graphql-rust

GraphQL in Rust!
MIT License
2 stars 0 forks source link

GraphQL Schema #3

Open dat2 opened 8 years ago

dat2 commented 8 years ago

Similar to the JavaScript implementations, I am thinking we should have a way to parse schema strings to rust types.

Similar to https://github.com/maciejhirsz/json-rust, I would also like the ability to create a graphql schema using macros.

dat2 commented 8 years ago

Another idea is to have the API like this:

schema.resolve(parsed_query, resolver)

Where resolver is the root Resolver, and Resolver is a trait users implement.

Another idea to improve caching: promise.race for an array of resolvers