RFC X / Rejected

__id field for unique identifiers

Opened on
Closed on

At a glance

Project
GraphQL Spec
Identifier
#232
Stage
RFC X / Rejected
Champion
@stubailo
Updated
2023-11-27
Latest activity
Marked as Rejected on
Source

Pull request description

This brings together many of the considerations about a __id unique identifier field into one document. There is still a lot of work to do before this becomes a merge-able diff on the spec:

  • Agree on field semantics specified in this PR
  • Restructure the spec so that the description for __id can live next to __typename
  • Write the change to the spec

Timeline

November 2023

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

October 2017

August 2017

  • Discussed in GraphQL WG

    Standardizing unique IDs in the spec/tooling

    • GraphQL currently doesn't have a standard way to implement unique identifiers.
    • Not having this currently impairs the ability to create tooling that processes results without involving configuration for how people use IDs.
    • It would provide a standard way to handle things such as cache invalidation.
    • Should probably be nullable since it is not always going to be provided.
    • There should ideally be a way to specify in what context the ID is unique.
    • This should be done in a way that is as non breaking as possible and doesn't require people to change their current setup.
    • Ideally it would leverage type ID.
    • It was mostly agreed that this would be valuable and followup for this would be to resurrect Sashko's stale PR and follow up discussion there.
    Meeting notes · GraphQL WG · 2017-08-14

January 2017

October 2016