Skip to content

protoc-gen-grafbase-subgraph: proper @derive support#155

Merged
tomhoule merged 1 commit into
mainfrom
tomhoule-tlsluvktrpnv
Aug 11, 2025
Merged

protoc-gen-grafbase-subgraph: proper @derive support#155
tomhoule merged 1 commit into
mainfrom
tomhoule-tlsluvktrpnv

Conversation

@tomhoule
Copy link
Copy Markdown
Contributor

@tomhoule tomhoule commented Aug 8, 2025

You can now create federation-style entity references using the composite_schemas_entity option on messages.

  • Automatically generates reference fields with @derive and @is directives
  • Creates stub entity types with @key directives if the target entity isn't already being rendered.
  • Supports custom relation field names with the field parameter
  • Enables entity references from a single id or multiple fields in federated schemas, including list of ids.

closes GB-9489

@tomhoule tomhoule force-pushed the tomhoule-tlsluvktrpnv branch 2 times, most recently from a2003fd to bf3fd4d Compare August 8, 2025 08:58
Comment thread cli/protoc-gen-grafbase-subgraph/tests/testcases/composite_schemas_entity.proto Outdated
Comment thread cli/protoc-gen-grafbase-subgraph/tests/testcases/composite_schemas_entity.proto Outdated
@Finistere
Copy link
Copy Markdown
Contributor

Added comments in slack

@linear
Copy link
Copy Markdown

linear Bot commented Aug 8, 2025

@tomhoule tomhoule force-pushed the tomhoule-tlsluvktrpnv branch 3 times, most recently from a66dfd8 to 96d54fe Compare August 11, 2025 12:46
@tomhoule tomhoule force-pushed the tomhoule-tlsluvktrpnv branch from 96d54fe to 2586419 Compare August 11, 2025 12:57
@tomhoule
Copy link
Copy Markdown
Contributor Author

Addressed everything we discussed @Finistere , merging now.

@tomhoule tomhoule merged commit d10c29e into main Aug 11, 2025
2 checks passed
@tomhoule tomhoule deleted the tomhoule-tlsluvktrpnv branch August 11, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants