Skip to content

Accessing the results of an include filter #115

@jpswensen

Description

@jpswensen

I am trying to figure out how to access the results of an include filter (I am using swift). I have tried a ton of things, but none of them seem to be working.

For example, once I execute the findWithFilter and stop at a breakpoint I can see that the results actually do include the included items (user_closet_items).
(lldb) po closet
<WRWW.UserCloset {
"closet_name" = "My First Closet";
"create_date" = "2016-06-25 07:50:51 +0000";
"delete_datetime" = "";
"owner_id" = 3;
"privacy_level_id" = 0;
"user_closet_items" = (
{
"create_date" = "2016-06-25T00:00:00.000Z";
"delete_date" = "";
id = 4;
"item_img_url" = string;
"item_name" = "Item 4";
"user_closet_id" = 3;
},
{
"create_date" = "2016-06-25T00:00:00.000Z";
"delete_date" = "";
id = 5;
"item_img_url" = string;
"item_name" = "Item 5";
"user_closet_id" = 3;
}
);
"user_location_id" = 0;
"wardrobe_type_id" = 0;
}>

However, for the life of me I can't actually figure out how to access them. I've tried a bunch of stuff by adding an [AnyObject?] member variable to the derived model, but can't seem to get anything to work. I search through all the examples and all the usual sources (Google, StackOverflow) and still can't get help. Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions