-
Notifications
You must be signed in to change notification settings - Fork 0
Update Constraints
KEY: "valid" = (1) record exists and (2) that record's _meta._archived is set to false.
checkValidIds
- Any new id in the original's relationship array must point to a "valid" id.
NOTE: The original's relationship is not actually stored.
checkManyInverseHasOne
-
Any new id in the original's relationship array must point to a "valid" id.
-
Each new id's relationship must either be (A) or (B) or (C)
(A) empty
(B) a resourcePointer with its _archived flag set to true
(C) a resourcePointer with its _related flag set to false
NOTE: The original's relationship is not actually stored.
- Throw an error
checkInverseHasOne
-
The new id in the original's relationship must point to a "valid" id.
-
The new id's relationship must either be (A) or (B) or (C)
(A) empty
(B) a resourcePointer with its _archived flag set to true
(C) a resourcePointer with its _related flag set to false
NOTE: The inverse's relationship is not actually stored.
checkValidId
- The new id in the original's relationship must point to a "valid" id.
- Throw an error
NOTE: The inverse's relationship is not actually stored.
- Throw an error
- Throw an error