At a glance
- Project
- GraphQL Spec
- Identifier
- #373
- Stage
- RFC 3 / Accepted
- Champion
- @mike-marcacci
- Updated
- 2022-04-04
- Latest activity
- Pull request merged on
- Source
- Pull request
Pull request description
This fixes #295 by describing the way in which an interface may implement another interface. The rules are essentially identical to the rules governing implementation of an interface by an object. I'd be more than happy to champion this change (per the CONTRIBUTING.md process) so please direct any questions my way.
This is a pretty small change, but adds substantially to the expressiveness of GraphQL's type system.
If someone in the WG can give me a nod, I'll go ahead and implement it in graphql-js.
Thanks in advance!
Timeline
January 2020
- Pull request merged on by leebyron
- 5 commits pushed on
- @leebyron committed "factor implementation validity check into reusable algo"
- @leebyron committed "Expand section on Validation with example of now-valid spread"
- @leebyron committed "algorithm cleanups"
- @leebyron committed "Add explaining note about not implementing itself"
- @leebyron committed "Fix broken reference"
- 3 commits pushed on
- @leebyron committed "Merge branch 'master' into rfc-interfaces-implement-interfaces"
- @leebyron committed "Apply suggestions from code review"
- @leebyron committed "Move implementing interfaces into "super-set of all interfaces it imp…"
- Advanced to RFC 3 on by leebyron
November 2019
- Discussed in GraphQL WG
Intermediate Interfaces RFC blog post (10m, Mike)
- Mike: So I just want to touch briefly on interfaces touching interfaces which are now called intermediate interfaces, it’s been merged into graphql-js, I talked to James since he had some initial concerns, I also got a blog post ready and saw that
- Blog post is ready. Andy published a similar one.
- Didn't want to put pressure on Ivan to get v15 out.
- Just wanted to give everybody a chance to express concerns, so yeah that’s basically it.
- Lee: This blog post mentions version 15 of Graphql.js. Ivan, what’s the release plan for that?
- Ivan: Yes so I released alpha0 and I want to release alpha1, the idea is to reach feature freeze, I want to continue to start the actual TypeScript conversion where Mike wanted to help, we want to achieve a feature freeze and the TypeScript conversion to release 15.0.0
- Michael: Is the plan for TS conversion a part of version 15 or after?
- Ivan: It’s part of 15, we promised after 14.0.0 to have stable releases, so I thought it was wasteful to have a TypeScript-specific release, I released alpha0 for deprecations and breaking changes so people could try it out, some people are probably using your PR which was opened earlier, so if somebody wants to try out intermediate interfaces right now, get the latest alpha-tagged version of the package. I still need to do some cleanup work and will gladly accept help, I acknowledge that this is necessary for GraphQL changes in 2020
- Michael: Cool! I don’t particularly care when I publish the blog post. I just want to make sure I don’t publish it too early. It seems like it is okay to do it now so I guess I’ll just go for it?
- Ivan: Yeah!
- Lee: The reason I was asking was to make sure that people can actually check out graphql to test the new features.
- Michael: That sounds good, I’ll release the post alongside 15
- Lee: Ivan does it make sense to release 15 earlier and have 16 with the TypeScript changes, do you think there’s a way to release 15 earlier anyhow?
- Ivan: Actually, one of the things we need to consider is that we need to do breaking changes. There are potential conflicts with different versions of Node (involving dependencies). You are probably right, we can release version 15 and ask one last time everyone to try it, all different teams and get feedback. I added ten different breaking changes (mostly corner cases) but I think you are right. If we release in January, the TS conversion will be a good target.
- Lee: I agree, glad we managed to talk about this, I definitely agree to the release candidate to make sure the folks from the relay and apollo team can check it out and verify nothing breaks, I think pushing out everything for TypeScript in January to set the path for GraphQL 2020 makes sense as well
- Michael: Hopefully this puts the brakes on some classical inheritance patterns
- Lee: I’m glad you managed to resolve all concerns with the Apollo team as well
- [Action - Lee]: Final review of the spec text to move to RFC3
October 2019
- On the agenda for GraphQL WG
34 listed attendees · 13 agenda items · 6 linked RFCs
- Opening of the meeting
- Introduction of attendees
- Determine volunteers for note taking (5m)
- Review agenda (5m)
- Review previous meeting's action items and check progress on those
- Spec cut date discussion (Lee, 10m) #261
- Disallow non-breakable chains of circular references in Input Objects (Benedikt, 5m) RFC #445
- Lexer lookaheads stage 3 approval (Lee, 10m) RFC 1 RFC 2 #599 #601
- Repeatable directives (10m) RFC #472
- Empty composite types (Victor, 10m) RFC #606
- Review design for the code page for graphql.org (5m)
- Interfaces implementing interfaces (James, 10m) RFC #373
- Review Input Union RFC and discuss the next steps (30m, Vince)
September 2019
- @mike-marcacci committed "Use simpler language for cycles" on
- @mike-marcacci committed "fix another typo" on
- 2 commits pushed on
- @mike-marcacci committed "Forbid cyclic references"
- @mike-marcacci committed "Fix small typos"
- Advanced to RFC 2 on by IvanGoncharov
- Discussed in GraphQL WG
July 2019
- @mike-marcacci committed "Add language to require declaring transitive interfaces" on
- @mike-marcacci committed "Merge branch 'master' into rfc-interfaces-implement-interfaces" on
- On the agenda for GraphQL WG
17 listed attendees · 10 agenda items · 1 linked RFC
- Opening of the meeting
- Introduction of attendees
- Review agenda (5m)
- Determine volunteers for note taking (5m)
- Review previous meeting's action items and check progress on those
- graphql.org website planning (Tanay, 10m)
- Interface Inheritance RFC (Maracci, 15m, RFC, Implementation) #373
- DateTime RFC (Andi, 20m)
- Spec editorial change criteria & plan (Ivan, 10m)
- ADD YOUR AGENDA ITEM ABOVE HERE
June 2019
- On the agenda for GraphQL WG
21 listed attendees · 13 agenda items · 2 linked RFCs
- Opening of the meeting
- Introduction of attendees
- Review agenda (5m)
- Determine volunteers for note taking (5m)
- Review DevStats https://devstats.graphql.org #174 (5m)
- Slack alternatives (10m)
- GraphiQL WG update (Benjie, Rikki) (15m)
- Tracking actionable items after each WG (Ivan) (10m)
- GraphQL.org Q&A & Call for Maintainers (5m)
- GraphQL FAQ (Ivan) (15m)
- Interface inheritance (Michael) (5m) #373
- @oneField (Benjie) (5m) #586
- ADD YOUR AGENDA ITEM ABOVE HERE
November 2018
- 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
- Advanced to RFC 1 on by leebyron
March 2018
- On the agenda for GraphQL WG
11 listed attendees · 12 agenda items · 1 linked RFC
- Opening of the meeting (LB)
- Introduction of attendees (all)
- Review agenda (LB, 5m)
- Determine volunteers for note taking (LB, 5m)
- Update on next spec release (LB, 10m)
- Continue discussing interface hierarchies (MM, 10m) RFC, POC #373
- Null default values (LB, 15m)
- OpenCRUD (JS, 10m)
- Top level directives (all, 5m)
- GraphQL.js documentation (LB/JS 5m)
- GraphQL ecosystem docs (LB/JS 10m)
- Ecosystem pairity between programming languages? (LB/JS 10m)
February 2018
- On the agenda for GraphQL WG
15 listed attendees · 14 agenda items · 3 linked RFCs
- Opening of the meeting
- Introduction of attendees
- Review agenda (5m)
- Determine volunteers for note taking (5m)
- Discuss upcoming meeting schedule (5m)
- Share status of Schema Definition Language & Next spec version (10m)
- Present graphql-import (5m)
- Next steps for "GraphQL over HTTP" spec (15m)
- SDL syntax for custom scalars (15m) #326
- Discuss subscriptions for live queries (15m)
- Discuss moving connection/global ID specs from Relay into best practices repo (15m) #232
- Exposing schema metadata (30m)
- Discuss errors (30m)
- Discuss interface hierarchies (30m) RFC, POC #373
November 2017
- Pull request created on by mike-marcacci
- @mike-marcacci committed "update introspection and validation" on