findOne()
MyModel.findOne(
/* {object}. -- Key/Value pairs to look for */
<propsValues>,
/* {Array} -- optional. ex: ['ParentEntity', 1234 ] */
<ancestors>,
/* {string} -- optional. A specific namespace */
<namespace>,
/* {object}. -- optional. Options for the query */
<options>,
/* {function} -- optional. The callback, if not passed a Promise is returned */
<callback>
)options
Last updated
Was this helpful?