We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbf0d7a commit a6b3badCopy full SHA for a6b3bad
1 file changed
src/lib/query.ts
@@ -200,4 +200,22 @@ export class Query extends BaseQuery {
200
this._parameters[key] = { '$nin': value };
201
return this;
202
}
203
+
204
+ /**
205
+ * @method notExists
206
+ * @memberof Query
207
+ * @description Returns the raw (JSON) query based on the filters applied on Query object.
208
+ * @example
209
+ * import contentstack from '@contentstack/delivery-sdk'
210
+ *
211
+ * const stack = contentstack.Stack({ apiKey: "apiKey", deliveryToken: "deliveryToken", environment: "environment" });
212
+ * const query = stack.contentType("contentTypeUid").Query();
213
+ * const result = notExists('fieldUid').find()
214
215
+ * @returns {Query}
216
+ */
217
+ notExists(key: string): Query {
218
+ this._parameters[key] = { '$exists': false };
219
+ return this;
220
+ }
221
0 commit comments