We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 970bcbf commit 3a8cd9eCopy full SHA for 3a8cd9e
1 file changed
src/lib/query.ts
@@ -264,6 +264,19 @@ export class Query extends BaseQuery {
264
this._parameters.$and = paramsList;
265
return this;
266
}
267
+
268
+ /**
269
+ * @method equalTo
270
+ * @memberof Query
271
+ * @description Returns the raw (JSON) query based on the filters applied on Query object.
272
+ * @example
273
+ * import contentstack from '@contentstack/delivery-sdk'
274
+ *
275
+ * const stack = contentstack.Stack({ apiKey: "apiKey", deliveryToken: "deliveryToken", environment: "environment" });
276
+ * const query = await contentType.Entry().query().equalTo('fieldUid', 'value').find();
277
278
+ * @returns {Query}
279
+ */
280
equalTo(key: string, value: string | number | boolean): Query {
281
this._parameters[key] = value;
282
0 commit comments