We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a141ac commit c3c767eCopy full SHA for c3c767e
types/lib/model.d.ts
@@ -341,6 +341,7 @@ export type WhereValue =
341
| string // literal value
342
| number // literal value
343
| boolean // literal value
344
+ | Buffer // literal value
345
| null
346
| WhereOperators
347
| WhereAttributeHash // for JSON columns
types/test/where.ts
@@ -9,6 +9,18 @@ let where: WhereOptions;
9
10
// From https://sequelize.org/master/en/v4/docs/querying/
11
12
+/**
13
+ * Literal values
14
+ * @see WhereValue
15
+ */
16
+where = {
17
+ string: 'foo',
18
+ number: 1,
19
+ boolean: true,
20
+ buffer: Buffer.alloc(0),
21
+ null: null,
22
+};
23
+
24
// Operators
25
26
const and: AndOperator = {
0 commit comments