Skip to content

Add @key as primary key fields instead of nodeId #1

Description

@jgzuke

When using Graphile federated with another service, it seems to make more sense for the key to be on the primary keys of the resource instead of the nodeId. This is because any other resource would be likely to have access to the resource by its primary keys.

This can be worked around by adding @requires(fields: {primary keys}) to each other field and fetching by the keys in __resolveReference but this seemed like a bad solution.

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