diff --git a/queries/query-language.md b/queries/query-language.md index edd9879..5665183 100644 --- a/queries/query-language.md +++ b/queries/query-language.md @@ -254,3 +254,11 @@ Model.find({ where: { name: 'foo' }, sort: { 'name': 1 }}); // Sort by multiple attributes Model.find({ where: { name: 'foo' }, sort: { name: 1, age: 0 }); ``` + +### Select + +Only returns requested attributes instead of the whole item. + +```javascript +Model.find({ where: { name: 'foo' }, select: ['email', 'age']}); +```