@@ -163,14 +163,19 @@ export const Constraints = {
163
163
field : null ,
164
164
comparable : false
165
165
} ,
166
+ isNull : {
167
+ name : 'isNull' ,
168
+ field : null ,
169
+ comparable : false
170
+ }
166
171
} ;
167
172
168
173
export const FieldConstraints = {
169
- 'Pointer' : [ 'exists' , 'dne' , 'eq' , 'neq' , 'unique' ] ,
170
- 'Boolean' : [ 'exists' , 'dne' , 'eq' , 'unique' ] ,
171
- 'Number' : [ 'exists' , 'dne' , 'eq' , 'neq' , 'lt' , 'lte' , 'gt' , 'gte' , 'unique' ] ,
172
- 'String' : [ 'exists' , 'dne' , 'eq' , 'neq' , 'starts' , 'ends' , 'stringContainsString' , 'unique' ] ,
173
- 'Date' : [ 'exists' , 'dne' , 'before' , 'after' , 'unique' ] ,
174
+ 'Pointer' : [ 'exists' , 'dne' , 'eq' , 'neq' , 'unique' , 'isNull' ] ,
175
+ 'Boolean' : [ 'exists' , 'dne' , 'eq' , 'unique' , 'isNull' ] ,
176
+ 'Number' : [ 'exists' , 'dne' , 'eq' , 'neq' , 'lt' , 'lte' , 'gt' , 'gte' , 'unique' , 'isNull' ] ,
177
+ 'String' : [ 'exists' , 'dne' , 'eq' , 'neq' , 'starts' , 'ends' , 'stringContainsString' , 'unique' , 'isNull' ] ,
178
+ 'Date' : [ 'exists' , 'dne' , 'before' , 'after' , 'unique' , 'isNull' ] ,
174
179
'Object' : [
175
180
'exists' ,
176
181
'dne' ,
@@ -183,6 +188,7 @@ export const FieldConstraints = {
183
188
'keyLt' ,
184
189
'keyLte' ,
185
190
'unique' ,
191
+ 'isNull'
186
192
] ,
187
193
'Array' : [
188
194
'exists' ,
@@ -193,6 +199,7 @@ export const FieldConstraints = {
193
199
'doesNotContainNumber' ,
194
200
'containsAny' ,
195
201
'doesNotContainAny' ,
202
+ 'isNull'
196
203
]
197
204
} ;
198
205
0 commit comments