You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.
I am trying to traverse nested relationships and when Query with resourceCollection, the URL being generated is not the one as defined in the relationship:
func testNested(){
spine.findAll(University.self).onSuccess{ collection, meta, jsonapi in
for university in collection.resources as![University]{
// This attempts to load GET /organizations (which is wrong)
letquery=Query(resourceType:Organization.self, resourceCollection: university.organizations!)
// This attempts to load GET /universities/1/relationships/organizations (which is right)
letquery=Query(resourceType:Organization.self, path:(university.organizations?.linkURL?.relativeString)!)}}}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to traverse nested relationships and when Query with resourceCollection, the URL being generated is not the one as defined in the relationship:
The text was updated successfully, but these errors were encountered: