nrc / graphql

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

async resolvers #4

Open nrc opened 6 years ago

nrc commented 6 years ago

It would be nice if resolvers could be either sync or async, but I think that is not possible in Rust and they must always be async (at least type-wise). Note that although they execute asyncronously, resolvers in a mutation must not be parallelised.