Function graphql_id::generate_default_operation_id[][src]

pub fn generate_default_operation_id(
    query: &str
) -> Result<String, GraphQLError>

Generate an operation id for the default operation in the query string

Examples

    use graphql_id::*;
    let query = "
        query Foo { foo }
    ";

    generate_default_operation_id(&query);