Skip to content

publish.once: changed message sent instead of added #21

@harry-73

Description

@harry-73

Hi,

I have a publication :

Meteor.publish.once('tests', function () {
 
  return Tests.find(
    {
      isPrivate: true,
      ownerId: this.userId
    }
  );
});

On client side, i have :

Meteor.subscribe('tests')

At the beginning, I have one document matching the filter. So one document is added to minimongo.

Via a moethod, I update another document by setting isPrivate = true

From the server, I receive the message changed with the update field (isPrivate). I was expected to receive an added message with the complete document

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions