Add a way to get a collection's name #11771
santiagopuentep
started this conversation in
Compat Packages
Replies: 2 comments 1 reply
-
Hi @santiagopuentep, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Not exact, but related: Meteor-Community-Packages/mongo-collection-instances#32 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Add a way of accessing a collections name, to use inside publications when publishing to it.
Currently there's a
Collection._name
field, but TypeScript complains and it's a hack.So instead of doing
this.added("myCollection", _id, fields);
inside a publication, one could dothis.added(MyCollection.name, _id, fields);
.Beta Was this translation helpful? Give feedback.
All reactions