@@ -3,7 +3,7 @@ import { BaseQuery } from './base-query';
33import { BaseQueryParameters , QueryOperation , QueryOperator , TaxonomyQueryOperation } from './types' ;
44export class Query extends BaseQuery {
55 private _contentTypeUid ?: string ;
6- override _queryParams : { [ key : string ] : any } = { } ;
6+
77 constructor ( client : AxiosInstance , uid : string , queryObj ?: { [ key : string ] : any } ) {
88 super ( ) ;
99 this . _client = client ;
@@ -173,13 +173,13 @@ export class Query extends BaseQuery {
173173 * import contentstack from '@contentstack/delivery-sdk'
174174 *
175175 * const stack = contentstack.Stack({ apiKey: "apiKey", deliveryToken: "deliveryToken", environment: "environment" });
176- * const query = stack.contentType("contentTypeUid").Query;
176+ * const query = stack.contentType("contentTypeUid").Query() ;
177177 * const result = containedIn('fieldUid', ['value1', 'value2']).find()
178178 *
179179 * @returns {Query }
180180 */
181181 containedIn ( key : string , value : ( string | number | boolean ) [ ] ) : Query {
182- this . _queryParams [ key ] = { '$in' : value } ;
182+ this . _parameters [ key ] = { '$in' : value } ;
183183 return this ;
184184 }
185185
@@ -191,13 +191,13 @@ export class Query extends BaseQuery {
191191 * import contentstack from '@contentstack/delivery-sdk'
192192 *
193193 * const stack = contentstack.Stack({ apiKey: "apiKey", deliveryToken: "deliveryToken", environment: "environment" });
194- * const query = stack.contentType("contentTypeUid").Query;
194+ * const query = stack.contentType("contentTypeUid").Query() ;
195195 * const result = notContainedIn('fieldUid', ['value1', 'value2']).find()
196196 *
197197 * @returns {Query }
198198 */
199199 notContainedIn ( key : string , value : ( string | number | boolean ) [ ] ) : Query {
200- this . _queryParams [ key ] = { '$nin' : value } ;
200+ this . _parameters [ key ] = { '$nin' : value } ;
201201 return this ;
202202 }
203203}
0 commit comments