Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment directive to use id in relay style node interface #241

Open
olirice opened this issue Nov 23, 2022 · 0 comments
Open

Comment directive to use id in relay style node interface #241

olirice opened this issue Nov 23, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@olirice
Copy link
Contributor

olirice commented Nov 23, 2022

Add a comment directive, relay_style_ids to remap any <table.id> fields to collectionId (or similar) and use id as the ID! to interop with relay with default relay config.

Note, you can currently use relay by adding nodeInterfaceIdField to your relay config

{
  "src": "./src",
  ...
  "schemaConfig": {
    "nodeInterfaceIdField": "nodeId"
  }
}
@olirice olirice added the enhancement New feature or request label Nov 23, 2022
@olirice olirice self-assigned this Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant