GithubHelp home page GithubHelp logo

peerlibrary / meteor-publish-context Goto Github PK

View Code? Open in Web Editor NEW
8.0 6.0 2.0 7 KB

Provide DDP._CurrentPublish with access to current publish context

Home Page: https://atmospherejs.com/peerlibrary/publish-context

License: BSD 3-Clause "New" or "Revised" License

JavaScript 53.74% CoffeeScript 46.26%
meteor meteor-package ddp ddp-publish

meteor-publish-context's Issues

Publish override might be incomplete

I just had a look at the Meteor.publish override code and it looks like it doesn't take the following format of Meteor.publish into account.

Meteor.publish({
  allPosts() {
    const userId = this.userId;
    return userId ? Posts.find({ userId }) : this.ready();
});

Just as with Meteor.methods, Meteor.publish allows the developer to give it an object.

It does not work for the automated publications for users

I20180109-18:04:02.592(2)? no invoke, CursorDescription {
I20180109-18:04:02.592(2)?   collectionName: 'users',
I20180109-18:04:02.592(2)?   selector: { _id: 'jzsdfPdbjBMdAedPg' },
I20180109-18:04:02.592(2)?   options:
I20180109-18:04:02.592(2)?    { transform: null,
I20180109-18:04:02.592(2)?      fields: { profile: 1, username: 1, emails: 1 } } }```

When that publication entry is created it does not put it inside DDP._CurrentPublish.get()

Any clues why ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.