Open
Description
Description
I am trying to build a custom GraphQL validation tool using apollo-compiler
v1.x beta.
I like the Apollo implementation's soundness thanks to the tight Rust type system.
However, the type system is restrictive for my use case, that is I can't programmatically walk over WithErrors
and read its underlying data. It only outputs a very nicely formatted text.
Is apollo-compiler
supposed to be a library or an end-user facing application? If the Apollo team intends to build it as a library, I think it's best to fully expose the data structure of WithErrors
and DiagnosticList
.
The user-friendly error reporting can be moved to an end-user facing application, or via a separate API.
Version:
apollo-compiler = { version = "1.0.0-beta.12" }