Skip to content

Relationship Paths For SprayPaint Compatibility #8

@caseyprovost

Description

@caseyprovost

(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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions