Preserving GraphQL directives in schema output

The graphql schema and runtime composite definition that are generated from writeEncodedCompositeRuntime don’t preserve the directives @string etc... that are defined in the input graphlq files. Does anyone know of a way to preserve these?

Having the directives there would be advantageous when generating types and validation from graphql-codegen.

@paul or @anon94983028 - tagging you in

The runtime definition is only meant to be used to generate the runtime schema, if you want to access the models definition you should use the devtools Composite APIs, not the runtime.