barrels icon indicating copy to clipboard operation
barrels copied to clipboard

Can't manually set foreign key with populate()?

Open spacesuitdiver opened this issue 9 years ago • 0 comments

I'm having a bit of problem where the app foreignKey isn't set when running barrels.populate(...), looks fine in the barrels.data, any idea what I'm missing? Thanks for the help.

App.json

[
    {
        "id":           "SsQbM0b10QCuWxMj11tnUIh0OJBDX64sttSsrR5U",
        "name":         "My App",
        "createdBy":    1,
        "ownedBy":  1,
        "createdAt":    "2015-10-30T22:19:58.921Z"
    }
]

AuthStrategy.json

[
    {
        "type": "facebook",
        "id": 1,
        "ownedBy": 2,
        "app": "SsQbM0b10QCuWxMj11tnUIh0OJBDX64sttSsrR5U",
        "accessToken": "..."
    }
]

spacesuitdiver avatar Feb 05 '16 01:02 spacesuitdiver