Skip to content
Compare
Choose a tag to compare
@goto-bus-stop goto-bus-stop released this 17 Nov 17:20
· 166 commits to main since this release
721e075

Features

  • parse_type parses a selection set with optional outer brackets - lrlna, pull/718 fixing issue/715
    This returns a SyntaxTree<Type> which instead of .document() -> cst::Document
    has .type() -> cst::Type.
    This is intended to parse the string value of a @field(type:) argument
    used in some Apollo Federation directives.
    let source = r#"[[NestedList!]]!"#;
    
    let parser = Parser::new(source);
    let cst: SyntaxTree<cst::Type> = parser.parse_type();
    let errors = cst.errors().collect::<Vec<_>>();
    assert_eq!(errors.len(), 0);

Fixes

  • Input object values can be empty - goto-bus-stop, pull/745 fixing issue/744
    apollo-parser version 0.7.3 introduced a regression where empty input objects failed to parse.
    This is now fixed.

    { field(argument: {}) }