Replies: 4 comments 3 replies
-
From the looks of your code, your implementation should work. There are at least 2 ways to create relationships in Parse; Pointers and Relations. Both are demonstrated working implementations in the Playgrounds. You can reduce your code significantly and make it more readable by using the async/await methods available in the SDK |
Beta Was this translation helpful? Give feedback.
-
@Jaycyn I’ve seen your comments on the parseplatform discord. If you have additional questions about Parse-Swift, feel free to ask by opening up additional discussions or issues in this repo. Of course, for items related to Parse-Server or other SDKs, the parseplatform discord is the best place for that. To see a feature comparison with this SDK against the rest of the parseplatform SDKs, you can visit here: #72 As for async/await, this SDK fully supports it and the API is fully documented and a ton of working examples in Swift Playgrounds |
Beta Was this translation helpful? Give feedback.
-
Thanks @cbaker6 We agree that Parse-Swift(OG) is quite a bit ahead of Parse-SDK-iOS-OSX, and it's pretty impressive. We worked with Back4App, which is a great back end platform and we were also able to spin up a local MongoDB Community server for local development so we're not banging on Back4App all the time. The relationships (per the thread question) are working for us - and thanks for the direction. That was a huge help during evaluation. Our holdup now is we need queryable, on-device data and our clients cannot spin up on-device servers. It seems we can do that with the Parse-SDK-iOS-OSX but not with Parse-Swift(OG) - it would require another database like CoreData of SwiftData and then we have a different relationship setup, two sets of queries and double the codebase. But I digress. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the insight, Corey.
We had a feeling that was the case - just needed confirmation. There's so little activity on the forums we didn't think it would be addressed so glad you saw it. ParseSwiftOG is way ahead in pretty much all aspects and would significantly shorten development time on our re-write because of the rich feature set, which has similarities to Realm. That local-first aspect is a requirement though, so it rules out Parse unfortunately. We considered crafting a bridge to a local store similar to ParseCareKit, but that in itself is a significant effort. |
Beta Was this translation helpful? Give feedback.
-
As a general question we would like to ensure we're implementing one->many relationship properly. We come from using Realm where a person with two dogs would look like this
The above code would create a person, both dogs and generate a forward relationship from the person to each dog.
In Parse, to accomplish the same relationship this appears to be the process:
We are looking for confirmation that is the correct process - and/or if there is any way to condense or shorten the code.
Beta Was this translation helpful? Give feedback.
All reactions