Function apollo_compiler::parser::parse_mixed_validate

source ยท
pub fn parse_mixed_validate(
    source_text: impl Into<String>,
    path: impl AsRef<Path>,
) -> Result<(Valid<Schema>, Valid<ExecutableDocument>), DiagnosticList>
Expand description

Parse a schema and executable document from the given source text containing a mixture of type system definitions and executable definitions. and validate them. This is mostly useful for unit tests.

path is the filesystem path (or arbitrary string) used in diagnostics to identify this source file to users.