Skip to content

addAllUnique() on Parse.User is not a function  #4704

Closed

Description

@venkataramanab

Issue Description

Parse.User.addAllUnique() is not a function

Steps to reproduce

Used on Parse Cloud Code on beforeSave(Parse.User,{})

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 2.7.4
    • Operating System: Mac 10.10.5
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): localhost
  • Database

    • MongoDB version: mongodb-core: 2.1.15
    • Storage engine: WiredTiger
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): localhost

Logs/Trace

Include all relevant logs. You can turn on additional logging by configuring VERBOSE=1 in your environment.

user ParseUser { _objCount: 0, className: '_User' }
error: Error generating response. ParseError {
  code: 141,
  message: TypeError: user.addAllUnique is not a function
    at /Users/venkataramana/Documents/parse-server/cloud2.js:180:18
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:228:7) } code=141, 

Activity

  1. flovilmart commented on Apr 8, 2018

    @flovilmart
    Contributor

    Can you double check your parse server and JS SDK version? Are those methods available on any other object?

  2. venkataramanab commented on Apr 8, 2018

    @venkataramanab
    Author

    After updating to parse@1.11.1 resolved my Issue.

  3. venkataramanab commented on Apr 8, 2018

    @venkataramanab
    Author

    before updating to parse@1.11.1, I didn't see this in ParseObject.js

    {
        key: 'addAllUnique',
        value: function (attr, items) {
          return this.set(attr, new _ParseOp.AddUniqueOp(items));
        }
    
  4. flovilmart commented on Apr 8, 2018

    @flovilmart
    Contributor

    Awesome!

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

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