Skip to content

Allow using @deprecated on tables #1561

Open
@bfelbo

Description

@bfelbo

Feature description

Currently it's possible to deprecate functions and columns using the @deprecated smart tag. It'd be great to support adding @deprecated to a table, which would mark e.g. the following as deprecated in the GraphQL schema:

  • any allFoos query
  • any foreign key references to this table from other tables/functions

Motivating example

Big projects will have tons of tables and developers often need to deprecate tables as business or technical requirements change. There's currently no easy way to deprecate a table. One alternative solution is to write a plugin, but it requires diving into PostGraphile internals.

Supporting development

I

  • am interested in building this feature myself
  • am interested in collaborating on building this feature
  • am willing to help testing this feature before it's released
  • am willing to write a test-driven test suite for this feature (before it exists)
  • am a Graphile sponsor ❤️
  • have an active support or consultancy contract with Graphile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🌳 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions