meteor / meteor-feature-requests

A tracker for Meteor issues that are requests for new functionality, not bugs.
Other
89 stars 3 forks source link

get method name and publication name from server side #399

Open crapthings opened 4 years ago

crapthings commented 4 years ago

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

vparpoil commented 4 years ago

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

crapthings commented 4 years ago

better have this in core method name can be useful

StorytellerCZ commented 4 years ago

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