Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Attributes, Operators and Ordering

Currently, when you retrieve data using a retrieval method, all attributes (or columns) of an entry are returned. For instance:

{ id: 2,
  title: 'The Incredibles',
  runtime: 115,
  releaseDate: '2004-04-14',
  isAvailableOnVHS: true,
  createdAt: 2019-07-19T15:36:05.066Z,
  updatedAt: 2019-07-19T15:36:05.066Z }

Sequelize lets you pass an attributes option to a find...