@@ -163,14 +163,19 @@ export const Constraints = {
163163 field : null ,
164164 comparable : false
165165 } ,
166+ isNull : {
167+ name : 'isNull' ,
168+ field : null ,
169+ comparable : false
170+ }
166171} ;
167172
168173export 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' ] ,
174179 'Object' : [
175180 'exists' ,
176181 'dne' ,
@@ -183,6 +188,7 @@ export const FieldConstraints = {
183188 'keyLt' ,
184189 'keyLte' ,
185190 'unique' ,
191+ 'isNull'
186192 ] ,
187193 'Array' : [
188194 'exists' ,
@@ -193,6 +199,7 @@ export const FieldConstraints = {
193199 'doesNotContainNumber' ,
194200 'containsAny' ,
195201 'doesNotContainAny' ,
202+ 'isNull'
196203 ]
197204} ;
198205
0 commit comments