GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Backwards compatibility issues with DIRECTIVE_DEFINITION location on older versions of graphql · Issue #4479 · graphql-java/graphql-java

Backwards compatibility issues with DIRECTIVE_DEFINITION location on older versions of graphql #4479

New issue
Copy link
New issue
Copy link
Open
Open
Backwards compatibility issues with DIRECTIVE_DEFINITION location on older versions of graphql#4479
Copy link

Description

@bbakerman
bbakerman
opened on Sep 27, 2026
Issue body actions

Describe the problem

The latest versions of graphql-java has implemented graphql/graphql-spec#1206

This allows a new location for directives

directive @onDirective on DIRECTIVE_DEFINITION

the standard @deprecated directives now allows itself to be on DIRECTIVE_DEFINITION

However if this modern schema is then represented to some other consumer who is on a graphql version that is older and this is very common right now) then they consumer will choke on the schema

To Reproduce

Print a schema on latest graphql-java (say 0.0.0-2026-03-18T00-52-57-e53ab1a. Consume that schema on a client running an older version of graphql-java (say 25.0)

** Design concerns **

Normally the version of graphql-java is localised to the running instance and hence this additive change would be ok but schema printing and introspection are ways in which schema can leave the runtime version of the server and need to be run on older versions.

I think there should be a "predicate" / "switch" mechanism that allows older versions (1 back say) of schema to be printed / produced.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.