Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addUnique not working with object value #1105

Closed
cyboolo opened this issue Mar 19, 2016 · 3 comments · Fixed by #1114 · 4 remaining pull requests
Closed

addUnique not working with object value #1105

cyboolo opened this issue Mar 19, 2016 · 3 comments · Fixed by #1114 · 4 remaining pull requests
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@cyboolo
Copy link

cyboolo commented Mar 19, 2016

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.

@flovilmart
Copy link
Contributor

was it working with parse.com?

@cyboolo
Copy link
Author

cyboolo commented Mar 19, 2016

Yes it was working before migration

@flovilmart flovilmart added the type:bug Impaired feature or lacking behavior that is likely assumed label Mar 19, 2016
@cyu
Copy link

cyu commented Mar 20, 2016

I'm having this issue as well. The error I'm getting is {"code":107,"message":"bad atom: [object Object]"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment