GraphQL Spec · Activity

June 2021

  • 16 listed attendees · 11 agenda items · 4 linked RFCs

    • Agree to Membership Agreement, Participation Guidelines and Code of Conduct (1m, Lee)
    • Introduction of attendees (5m, Lee)
    • Determine volunteers for note taking (1m, Lee)
    • Review agenda (2m, Lee)
    • Review previous meeting's action items (5m, Lee)
    • Update on next version of GraphQL specification (5m, Lee)
    • Schema Coordinates update (5m, Lee, Mark) #794
    • Full unicode support (5m, Lee, Andi) #849
    • Fragment Arguments RFC (10m, Matt) #865
    • @defer/@stream Updates (5m, Rob) #742
    • Roundtable discussion on @defer/@stream (15m, Brian Kim) #742
    • Advanced to RFC 1 on by leebyron
    • On the agenda for GraphQL WG
    • Discussed in GraphQL WG

      Fragment Arguments RFC (10m, Matt)

      Meeting notes · GraphQL WG · 2021-06-03

      Fragment Arguments RFC (10m, Matt)

      • Pending Implementation PR
      • Matt: I took the feedback from the last working group that maybe we should treat fragment arguments to be as part of the implementation. So I've added a step in GraphQL.js so that when we hit the fragment spread that defines arguments we go through and match the relevant variables. It might not be performant, but I've opened it up on GraphQL.js but it's turned off by default.
      • Matt: the harder part will be defining the validation rules to provide good errors because all variables used to be defined at the operation root or arguments at the field level; however now we have arguments whose type is defined in the executable document itself. Weird thing to resolve with the current validation setup.
      • Matt: RFC blocker is getting the validation rules up for the GraphQL.js implementation. After that, not certain what the next best steps will be.
      • Lee: I have a hunch that validation will be the bulk of the work and will inform the executor - may let you do something more performant for example.
      • Matt: one validation rule that might simplify the executor is only allowing constant arguments to be supplied to the fragments.
      • Matt: I'm trying to prevent implementations having to create an argument/variable stack. By making it so that you can only use variables defined as fragment arguments in the same fragment then the collectfields scope is extremely limited and means we don't have to pass the stack down.
      • Ivan: can we require that if you specify variables on a fragment then all downstream fragments can only reference fragments passed down explicitly?
      • Matt: that was one of the options in the original issue (posted 2016); now that we have the giant corpus of actual GraphQL that would mean only new queries could use it - we couldn't really add a fragment with arguments that calls a fragment without arguments. This spec RFC is preserving Relay's @arguments / @argumentDefinitions directives. We allow the fragment variables and operation variables to be intermixed at will.
      • Ivan: so if you explicitly define a fragment with variables you can still use the operation variables too?
      • Matt: yes. That's definitely a discussion point though; we should discuss the pros/cons on that RFC.
      • Lee: great progress - nice work!
      • Lee: Next steps: continue work on validation/execution. The PR that you have now is added but disabled; but I'd love to see it go through the whole process. I reviewed it before the meeting and was surprised it was disabled.
      • Matt: is anyone else interested in pushing this along? There's 4-5 validation rules that need writing and I'd love to have some help on this. It's probably Ivan's purview, but I don't know if it's in a state where we should add it in a branch on GraphQL.js to allow people to send PRs directly or if they should send to my fork.
      • Lee: I suggest that the PR is open to GraphQL.js and allow others to contribute to your PR. Start building a test suite and use that to gut-check the validation rules.
      • Ivan: I requested the rule to forbid during validation because people will start using this feature; if we change something later it's important the user explicitly agreed to enable this experimental feature, rather than implicitly. Maybe instead of a branch we can merge it as is but make it clear that it's experimental. I'm against flags; it complicates code and makes everything harder.
      • Matt: makes sense to me.
      • Lee: I anticipate the default value coercion stuff colliding in potentially interesting ways.
      Meeting notes · GraphQL WG · 2021-06-03

May 2021

April 2021

March 2021

February 2021

January 2021