Skip to content

addUnique not working with object value #1105

Closed
@cyboolo

Description

@cyboolo

Hi

I can't make my cloud function working with addUnique:

myVal = {"a":"A","b":"B"};

myClass.addUnique("myArrayfield", myVal);

It gives me bad request response.

It only works if myVal is a string but I want to save a JSON object. Furthermore, if I try to stringify, it adds symbols in my expression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions