I20171109-18:20:57.304(5.5)? Calling 'getInformationOn', arguments: [ 'KrAubggQ8cdf7dGJD', 'policies' ]
I20171109-18:20:57.466(5.5)? Exception while invoking method 'getInformationOn' TypeError: collection.findOne is not a function
I20171109-18:20:57.467(5.5)? at [object Object].Meteor.methods.getInformationOn (server/methods/getInformationMethod.js:41:25)
My turn to apologise, was not clear. I assumed that the caller of the getInformationOn function would have access to the Collection object and could pass that object instead of the collection name string. i.e.,
given that:
PoliciesCollection = new Mongo.Collection ('policies')
then instead of:
let retrievedDocument = getInformationOn('KrAubggQ8cdf7dGJD', 'policies');
use:
let retrievedDocument = getInformationOn('KrAubggQ8cdf7dGJD', PoliciesCollection);
but of course I don’t understand the context of and what you are trying to do (why having a function with a single return statement?), so I was only guessing…