Skip to content

Add identityColumns and stack composite keys on routes-api member paths - #21

Merged
rmcfadden merged 1 commit into
mainfrom
composite-crud-identities
Aug 26, 2026
Merged

rmcfadden merged 1 commit into
mainfrom
composite-crud-identities

Conversation

@rmcfadden

Copy link
Copy Markdown
Contributor

Summary

  • Add identityColumns so ids: [left_id, right_id] is the ordered identity (with is_id / is_fixed_id / injected id as fallbacks).
  • Stack every identity column on routes-api member paths (/api/links/{left_id}/{right_id}) and expose primaryKeyFields for composite entities.
  • Drop the unused unionMembers / DATASOURCE_YAML exports now that exclusive unions are gone.

Test plan

  • npm test in generators-common (includes new spec-types cases)
  • CI on this PR

Made with Cursor

ids:[left_id, right_id] is now the ordered identity, so member routes and unique lookups use every column instead of only the first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant