Skip to main content

parse

Function parse 

Source
pub fn parse(
    language: QueryLanguage,
    input: &str,
) -> Result<GqlQuery, QueryError>
Expand description

Parses input as the selected language into a GqlQuery.

ยงErrors

Returns QueryError when syntax is invalid, write-shaped, or unsupported. See crates/khive-query/docs/api/parsing.md for accepted dialect subsets.