Server
collection.allow(options)
Allow users to write directly to this collection from client code, subject to limitations you define.
Options
- insert, update, remove Function
-
Functions that look at a proposed modification to the database and return true if it should be allowed.
- fetch Array of Strings
-
Optional performance enhancement. Limits the fields that will be fetched from the database for inspection by your
update
andremove
functions. - transform Function
-
Overrides
transform
on theCollection
. Passnull
to disable transformation.
Please login to continue.