/// Parse a GraphQL query document.
///
/// # Errors
///
/// Fails if the query is not a valid GraphQL document.
Parse a GraphQL query document.
Parse a GraphQL query document .
pub fn parse_query<T: AsRef<str>>(input: T) -> Result<ExecutableDocument> {
    let mut pc = PositionCalculator::new(input.as_ref());
    Ok(parse_executable_document(
        exactly_one(GraphQLParser::parse(
            Rule::executable_document,
            input.as_ref(),
        )?),
        &mut pc,
    )?)
}
pub fn parse_query < T : AsRef < str > > ( input : T ) -> Result < ExecutableDocument > { let mut pc = PositionCalculator :: new ( input . as_ref ( ) ) ; Ok ( parse_executable_document ( exactly_one ( GraphQLParser :: parse ( Rule :: executable_document , input . as_ref ( ) , ) ? ) , & mut pc , ) ? ) }
Parse a GraphQL query document.
Parse a GraphQL query document .
input
T
errors
Fails if the query is not a valid GraphQL document.
Fails if the query is not a valid GraphQL document .