nrc / graphql

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

Statically generate validation code #12

Open nrc opened 6 years ago

nrc commented 6 years ago

In theory, we don't need to reflect the schema and use that to dynamically validate each query. We could generate a query validator from the schema at compile-time. This would in theory be more efficient, but I'm not sure if it makes enough difference to warrant the complexity. It would be fun to find out, in any case.