Join the conversation

Sign in to join this conversation, and others like it, in the communities you care about.

Wekan

Wekan is an open-source kanban board (Trello like) which allows a card-based task and to-do management.

Wekan / General

Server publication collections

Server publication collections

Wekan / General · January 10, 2021 at 9:57pm

Is there a way to get the Mongo collections returned by publish functions on the client side?

For instance, if a server publishes a collection of cards, is there a way to get that collections without doing Cards.find(...) on the client?

I have looked at the Meteor documentation but I have not seen it.


January 10, 2021 at 10:02pm

Well, not all data should be published to browserside. Other way is to do Meteor.call(...) and get data from serverside that way.

    • reply
    • like

    Search for: Meteor methods

      • reply
      • like

      For example, when on clientside I do Meteor.call(...), then at serverside at wekan/models/*.js I check with Meteor.isServer() is that code running serverside, is it by admin, and then return data

        • reply
        • like

        January 11, 2021 at 7:36am

        I will look at Meteor.call(). Thanks.

        But it seems there is no way to get the data returned by a specific publication.

          • reply
          • like