meteor-feature-requests icon indicating copy to clipboard operation
meteor-feature-requests copied to clipboard

get method name and publication name from server side

Open crapthings opened this issue 5 years ago • 3 comments

when you invoke Meteor.call, Meteor.subscribe, i want to know which method or publication i'm working with currently.

there's

this.userId

better have something like

this.methodName this.publicationName

crapthings avatar May 19 '20 09:05 crapthings

In publications, you can use this._name in methods, native methods don't have the attribute, but you can use mdg:validated-methods which provide this.name

vparpoil avatar May 22 '20 10:05 vparpoil

better have this in core method name can be useful

crapthings avatar May 26 '20 05:05 crapthings

Would something along these lines work: https://github.com/meteor/meteor/pull/11039

StorytellerCZ avatar Jun 02 '20 12:06 StorytellerCZ