You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may simply be me not understanding something here, so mainly I am requesting a clarification.
On lines 171-186 where _allow_create is commented and defined
/** * A convenience method for declaring access control on creates, based on the * value of the document before the operation is applied to it. * @param {String} collectionName * @param {Function} callback(docId, opData, doc, connectSession, next) * where next(docId, opData, docBeforeOp, session, next) */Store.prototype._allow_create=function(pattern,validate){this.shareClient._validatorsCreate.push(function(collection,docName,opData,snapshotData,connectSession){if(!collectionMatchesPattern(collection,pattern))return;varnewDoc=opData.create.data;returnvalidate(docName,newDoc,connectSession);});};
Is the @param {Function} callback(docId, opData, doc, connectSession, next) in the comments supposed to correlate to validate(docName, newDoc, connectSession) in the code?
The text was updated successfully, but these errors were encountered:
This may simply be me not understanding something here, so mainly I am requesting a clarification.
On lines 171-186 where _allow_create is commented and defined
Is the
@param {Function} callback(docId, opData, doc, connectSession, next)
in the comments supposed to correlate tovalidate(docName, newDoc, connectSession)
in the code?The text was updated successfully, but these errors were encountered: