RFC 3 / Accepted

Repeatable directives

Opened on
Merged on

At a glance

Project
GraphQL Spec
Identifier
#472
Stage
RFC 3 / Accepted
Champion
@OlegIlyenko
Updated
2021-04-09
Latest activity
Pull request merged on
Source

Pull request description

This proposal directly relates to a discussion in https://github.com/facebook/graphql/issues/429. As was discussed at the latest WG meeting, I'm creating several alternative proposals. This one implements proposed solution 4. Limit the validation to only these directives that are explicitly marked as "unique". This implies that we need to introduce a new option in the directive definition.

It limits the scope of "Directives Are Unique Per Location" to directives that are explicitly marked as unique.

This proposal is mutually exclusive with other alternative proposals:

  • [RFC] Limit uniqueness to @skip, @include and @deprecated directives (#471)
  • [RFC] Limit directive uniqueness to explicitly marked directives (#472, this one)

@leebyron @IvanGoncharov @jjergus I would appreciate your reviews.

Closes #429 Closes #471

Timeline

January 2020

October 2019

November 2018

  • Advanced to RFC 2 on by leebyron
  • On the agenda for GraphQL WG

    17 listed attendees · 13 agenda items · 5 linked RFCs

    • Opening of the meeting
    • Introduction of attendees
    • Review agenda (5m)
    • Determine volunteers for note taking (5m)
    • Future WG meeting date proposals (10m)
    • GraphQL Foundation (Updates & Discussion) (10m)
    • Briefing on ISO GQL (SQL for Graphs) (5m)
    • graphql-cats adoption issues (5m)
    • Interface inheritance (10m) RFC, reference implementation <- needs more eyes #373
    • Discussion of Deprecation Directive Additions (5m) #525
    • Continued discussion on input unions, RFC (10m) #395
    • Update on #429 - limiting the scope of "Directives Are Unique Per Location" validation. (OI 10m) #470 #472
    • Potential issues with ignored characters (5m, IG)

October 2018

September 2018

  • On the agenda for GraphQL WG

    13 listed attendees · 10 agenda items · 7 linked RFCs

    • Opening of the meeting
    • Introduction of attendees
    • Review agenda (5m)
    • Determine volunteers for note taking (5m)
    • Discussion of Allowing singular variables for lists (10m) #509
    • Discussion of Variable Definition Directives (5m) #510
    • Update on #429 - limiting the scope of "Directives Are Unique Per Location" validation. (OI 10m) #470 #471 #472
    • Update on Compatibility Acceptance Tests (CATs). (OI 10m)
    • Proposal to support description on Schema (IG 5m) #466
    • Next steps for "Define custom scalars in terms of built-in scalars" (spec changes, graphql-js) (IG 15m) #326

June 2018