Skip to content

[Apollo-Compiler][Feature Request] Expose validation data access #824

Open
@Xinkai

Description

@Xinkai

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" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions