Open MaxmaxmaximusGitHub opened 4 years ago
Messages = new Mongo.Collection('messages') Messages.addLinks({ 'user': { type : 'one', collection: Meteor.users, field : 'userId', } }) console.log Messages.hasLink('toString') // true
While I guess this is technically a bug, I'm not sure how you possibly stumbled across this :joy:
https://github.com/cult-of-coders/grapher/blob/842dbb1ed313ecd1abdd7fc79378be673445df1b/lib/links/extension.js#L46
use hasOwnProperty (in multiple other places as well)
hasOwnProperty