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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -