Created
November 28, 2022 17:02
-
-
Save flyingsilverfin/42dece577d438362da78dfb20ea5d8b7 to your computer and use it in GitHub Desktop.
Strong Typing in TypeDB blog: match contractors inference
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
match | |
$org isa organisation; | |
(buyer: $org, seller: $contracted) isa contract; | |
$contracted has name $name; | |
===== after type inference ===== | |
$org may be [non-profit, for-profit] | |
$contracted may be [non-profit, for-profit, person] | |
$name may be [name] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment