Edit this page

Model

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

Example:

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

User.model.find({});

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