-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for composite identifiers delimited by
/
This commit extends global id to allow representing models with composite identifiers. The value will be joined by `/`. For example: Given a `TravelRoute` model with `origin` and `destination` as the compsoite primary key, the global id will be represented as: ``` TravelRoute.new(origin: "Ottawa", destination: "New York").to_global_id => gid://app/TravelRoute/Ottawa/New%20York ``` Co-authored-by: Adrianna Chang <[email protected]> Co-authored-by: Nikita Vasilevsky <[email protected]>
- Loading branch information
1 parent
5c68d15
commit 5ce154c
Showing
10 changed files
with
234 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.