Skip to content

Parse.User.current() replacement in query #1

@ghost

Description

I'm seeing this error when I run my React Native app:

My observe() function:

  observe: function() {
    return {
      user: ParseReact.currentUser,
      current: new Parse.Query('Idea')
        .equalTo('User', Parse.User.current())
        .equalTo('State', Config.IDEA_STATES[Config.CURRENT]),
    };
  },

image

I tried using Parse.User.currentAsync(), but that returns a Promise instead of Parse.Object. How do I filter by current user in my subscription query?

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