javascript - Is there a way to limit published fields in Meteor aldeed tabular package -
javascript - Is there a way to limit published fields in Meteor aldeed tabular package -
is there way limit info published aldeed tabular datatable? example, if collection has attributes a, b, c, d, attribute c sensitive , hence want prevent beingness published, attributes a, b, d published datatable. checked documentation not find explicit reply this...
thank you!!
you should remove autopublish package.
and should limit field homecoming query, in case on publish function.
meteor.publish('datatable',function(){ homecoming data.find({}, { fields: { a: true, b: true, c: false, d: true } }); } and subscribe publish
meteor.subscribe('datatable') note: if have collection on /lib folder, sure create subscribe reactive
tracker.autorun(function(){ meteor.subscribe('datatable') }) javascript mongodb meteor datatable
Comments
Post a Comment