I have two arrays in my _User table: hasCreated and isMemberOf that hold group objects belonging to a Group table.
When I POST to a Group, it happens as expected, but when I GET User with
includeKey=isMemberOf&hasCreated
I get the following:
hasCreated: [
{
__type: Object,
className: Group,
createdAt: 2014 - 06 - 04T18: 59: 02.325Z,
createdById: abc,
…
}
{
__type: Pointer,
className: Group,
objectId: def
}
{
__type: Pointer,
className: Group,
objectId: ghi
}]
isMemberOf: [
{
__type: Object,
className: Group,
createdAt: 2014 - 06 - 04T18: 59: 02.325Z,
createdById: abc,
…
}
{
__type: Pointer,
className: Group,
objectId: def
}
{
__type: Pointer,
className: Group,
objectId: ghi
}]
So basically, I only get back one of the three groups in its entirety, and the _type fields are different as well. Here is what I have in the User table in both hasCreated and isMemberOf array fields:
[{
"__type": "Pointer",
"className": "Group",
"objectId": "abc"
}, {
"__type": "Pointer",
"className": "Group",
"objectId": "def"
}, {
"__type": "Pointer",
"className": "Group",
"objectId": "ghi"
}]
What am I doing wrong? I need to get the full objects for each of the groups. Please advise! Thanks!