Edit this page

Model

Once you retrieve a list from Keystone, the mongoose methods can be accessed from .model.

Example:

var User = require('keystone').List('User');

User.model.find({});

See the mongoose query documentation for more details on querying your database.