Recursive Pointer #127
Closed
jeffreyjackson
started this conversation in
General
Replies: 1 comment 1 reply
-
Sure, I’ve answered similar questions in the past, below are some of the answers: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! First off, thank you @cbaker6 for your efforts on this SDK. Ive pulled it in for a new front-end project to try it out. This project is using an existing backend thats been around for a few years.
I understand my question goes against the grain regarding value-types for swift, but coming from a previous design on the old school SDK - im trying to figure out the correct approach to this since the backend architecture and object names are already in place.
The example I'm trying to address is similar to a recursive representation of departments.
Simply:
I understand I could includeKey in the query previously, which isn't necessary for this new frontEnd Im working on. However, the user could potentially query for organization where they all match a specific parentOrganization of the same type. Alternatively for a given organization, I could query for the parent if needed.
What would be your recommendation to overcome this current design pattern?
Beta Was this translation helpful? Give feedback.
All reactions