graphql-remote_loader icon indicating copy to clipboard operation
graphql-remote_loader copied to clipboard

Validate (syntax + type check) queries

Open d12 opened this issue 6 years ago • 0 comments

Presently, if one field tries to load a syntactically invalid or type-invalid query, it will break the entire batched query and no data will be loaded.

This could be avoided by validating queries before the merging step.

This will incur a performance hit though, and it'll require users to provide a schema definition for the APIs their dependent on. A good mid-way point might just be syntactically validating queries, and ignoring type-correctness. This way, we don't need an SDL.

d12 avatar Jun 22 '18 13:06 d12