Function apollo_compiler::parse_mixed
source · pub fn parse_mixed(
source_text: impl Into<String>,
path: impl AsRef<Path>
) -> (Schema, ExecutableDocument)
Expand description
Parse a schema and executable document from the given source text containing a mixture of type system definitions and executable definitions. 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.
Parsing is fault-tolerant, so a schema and document are always returned. TODO: document how to validate