diff --git a/versioned_docs/version-6.x.x/core-concepts/model-querying-basics.md b/versioned_docs/version-6.x.x/core-concepts/model-querying-basics.md index 4587299fe..bfd01854b 100644 --- a/versioned_docs/version-6.x.x/core-concepts/model-querying-basics.md +++ b/versioned_docs/version-6.x.x/core-concepts/model-querying-basics.md @@ -69,7 +69,10 @@ Attributes can be renamed using a nested array: ```js Model.findAll({ - attributes: ['foo', ['bar', 'baz'], 'qux'], + attributes: [ + ['foo', 'baz'], + ['baz', 'qux'], + ], }); ``` @@ -81,7 +84,10 @@ You can use [`sequelize.fn`](pathname:///api/v6/class/src/sequelize.js~Sequelize ```js Model.findAll({ - attributes: ['foo', [sequelize.fn('COUNT', sequelize.col('hats')), 'n_hats'], 'bar'], + attributes: [ + ['foo', 'bar'], + [sequelize.fn('COUNT', sequelize.col('hats')), 'n_hats'], + ], }); ```