-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
(adding this here for trackability/transparency)
Currently, Spraypaint expects relationship errors to be nested. GraphitiErrors does not provide this functionality. In talking with @wadetandy and @richmolj, we figured we could just add a path attribute to the relationship meta in order for SprayPaint and other clients to "walk the tree".
The idea would be:
Path Structure:
/relationship1_name|json_type|id/relationship2_name|json_type|id
Examples :
/person|people|1/contacts|contacts|23
/person|people|1/contacts|contacts|23/company_addresses|addresses|5
"meta": {
"relationship": {
"attribute": "name",
"path": "/person|people|1/contacts|contacts|23"
...
}
}Metadata
Metadata
Assignees
Labels
No labels