Skip to content

Commit 3a8cd9e

Browse files
docs: 📝 docs update for equalTo
1 parent 970bcbf commit 3a8cd9e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/lib/query.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,19 @@ export class Query extends BaseQuery {
264264
this._parameters.$and = paramsList;
265265
return this;
266266
}
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+
*/
267280
equalTo(key: string, value: string | number | boolean): Query {
268281
this._parameters[key] = value;
269282
return this;

0 commit comments

Comments
 (0)