ios swift: receiving the data over 3 classes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ios swift: receiving the data over 3 classes

Heidi Anselstetter
Hi,

My structure is this:

A "User" can have multiple "CardSet". 
"CardSet" has a pointer to "User.objectId"
Each "CardSet" can have multiple "Card".
A "Card" has a pointer to "CardSet.objectId"

When I want to select all Cards for a User - how can I do this?
Can someone help me with the query? 

I know I have to query "Card" get the "cardset" pointer and get for this corresponding cardset the assigned user.

I am absolutely lost here, as I am at the beginning and just overwhelmed by all possibilities...

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/7814a7fa-80c1-4b73-9945-c112fe0ac5c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

ios swift: receiving the data over 3 classes

Dennis W
I noticed that nobody responded to your inquiry. Did you ever get an answer to your question from another source?

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/e07407c2-5647-4383-90ac-2db92e036405%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ios swift: receiving the data over 3 classes

Jens Alfke

> On Apr 11, 2015, at 12:30 AM, Dennis W <[hidden email]> wrote:
>
> I noticed that nobody responded to your inquiry. Did you ever get an answer to your question from another source?

The question was really unclear — it sounds like she wants to use some sort of database API since she used terms like “object id” and “query”, but it doesn’t sound like Core Data.

If this is just using pure Swift, it would be trivial to set it up by using object references and Array or Set collections.

—Jens

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/B95F161C-8538-4F64-B226-F445D146E353%40mooseyard.com.
For more options, visit https://groups.google.com/d/optout.