RFC 3 / Accepted

Avoid parse ambiguity on types & extensions

Opened on
Merged on

At a glance

Project
GraphQL Spec
Identifier
#598
Stage
RFC 3 / Accepted
Champion
@leebyron
Updated
2021-04-08
Latest activity
Pull request merged on
Source

Pull request description

Partial fix to #564, adds lookahead constraints to type system extensions to remove ambiguity or inefficiency from the grammar.

The GraphQL grammar should be parsed in linear type with at most one lookahead. Since extensions have an optional { } body, finding the token { should always attempt to parse the relevant portion of the type extension rather than completing the type extension and attempting to parse the query shorthand SelectionSet.

Timeline

April 2021

August 2019

  • On the agenda for GraphQL WG

    12 listed attendees · 10 agenda items · 3 linked RFCs

    • Opening of the meeting
    • Introduction of attendees
    • Review previous meeting's action items and check progress on those
    • Review agenda (5m)
    • Determine volunteers for note taking (5m)
    • Parse ambiguity PR & greedy lexing PR (Lee, 10m) #598 #599
    • Number lexer follow restriction RFC (Lee, 10m) #601
    • libgraphqlparser (Erik) (10m)
    • GraphQL CATS (Michael Staib, et al, 10m)
    • ADD YOUR AGENDA ITEM ABOVE HERE

July 2019