Closed
Description
We were using such code to build an apollo_encoder
Document from an apollo_parser
Document:
use apollo_parser::cst::Document;
fn derive_public_schema(doc: Document,...) {
let mut pub_schema = apollo_encoder::Document::new();
for definition in doc.definitions() {
match definition {
Definition::SchemaDefinition(e) => pub_schema.schema(e.try_into()?),
Definition::OperationDefinition(e) => pub_schema.operation(e.try_into()?),
Definition::FragmentDefinition(e) => pub_schema.fragment(e.try_into()?),
...
The update of apollo_parser
to 0.8.x
. breaks this code.
I could not find how to deal with that.
What would be the new way?
My goal is to transform the schema based on some custom directives and to compute its new SDL (as String)
Metadata
Metadata
Assignees
Labels
No labels