Skip to content

apollo-compiler@0.8.0

Choose a tag to compare

@lrlna lrlna released this 13 Apr 13:22
· 558 commits to main since this release
b296ae1

0.8.0 - 2023-04-13

BREAKING

There is now an API to set parser's token limits via apollo-compiler. To
accommodate an additional limit, we changed the API to set several limits
simultaneously.

let op = r#"
    query {
        a {
            a {
                a {
                    a
                }
            }
        }
    }
"#;
let mut compiler = ApolloCompiler::new().token_limit(22).recursion_limit(10);
compiler.add_executable(op, "op.graphql");
let errors = compiler.db.syntax_errors();

assert_eq!(errors.len(), 1)

by lrlna in pull/512

Features

Fixes