@@ -80,7 +80,7 @@ const _extend = {
80
80
81
81
/**
82
82
* @summary
83
- * Creates an instance of ` Query` .
83
+ * Creates an instance of ' Query' .
84
84
* @description
85
85
* An initializer is responsible for creating Query object.
86
86
* @example
@@ -103,7 +103,7 @@ export default class Query extends Entry {
103
103
* @example let blogQuery = Stack().ContentType('example').Query();
104
104
* let data = blogQuery.lessThan('created_at','2015-06-22').find()
105
105
* data.then(function (result) {
106
- * // result content the data who's created_at date is less than '2015-06-22'
106
+ * // result content the data who's ' created_at date' is less than '2015-06-22'
107
107
* },function (error) {
108
108
* // error function
109
109
* })
@@ -119,7 +119,7 @@ export default class Query extends Entry {
119
119
* @example let blogQuery = Stack().ContentType('example').Query();
120
120
* let data = blogQuery.lessThanOrEqualTo('created_at','2015-06-22').find()
121
121
* data.then(function (result) {
122
- * // result contain the data of entries where the created_at date will be less than or equalto '2015-06-22'.
122
+ * // result contain the data of entries where the ' created_at' date will be less than or equalto '2015-06-22'.
123
123
* },function (error) {
124
124
* // error function
125
125
* })
@@ -130,12 +130,12 @@ export default class Query extends Entry {
130
130
* @method greaterThan
131
131
* @description Retrieves entries in which the value for a field is greater than the provided value.
132
132
* @param {String } key - uid of the field
133
- * @param {* } value - value used to match or compare.
133
+ * @param {* } value - value used to match or compare
134
134
* @example
135
135
* let blogQuery = Stack().ContentType('example').Query();
136
136
* let data = blogQuery.greaterThan('created_at','2015-03-12').find()
137
137
* data.then(function(result) {
138
- * // result contains the data of entries where the created_at date will be greaterthan '2015-06-22'
138
+ * // result contains the data of entries where the ' created_at' date will be greaterthan '2015-06-22'
139
139
* },function (error) {
140
140
* // error function
141
141
* })
@@ -151,7 +151,7 @@ export default class Query extends Entry {
151
151
* @example let blogQuery = Stack().ContentType('example').Query();
152
152
* let data = blogQuery.greaterThanOrEqualTo('created_at','2015-03-12').find()
153
153
* data.then(function(result) {
154
- * // result contains the data of entries where the created_at date will be greaterThan or equalto '2015-06-22'
154
+ * // result contains the data of entries where the ' created_at' date will be greaterThan or equalto '2015-06-22'
155
155
* },function (error) {
156
156
* // error function
157
157
* })
@@ -200,7 +200,7 @@ export default class Query extends Entry {
200
200
* @example let blogQuery = Stack().ContentType('example').Query();
201
201
* let data = blogQuery.notContainedIn('title', ['Demo', 'Welcome']).find()
202
202
* data.then(function(result) {
203
- * // result contains the list of entries where value of the title field should not be either "Demo" or ‘Welcome’
203
+ * // ' result' contains the list of entries where value of the title field should not be either "Demo" or ‘Welcome’
204
204
* },function (error) {
205
205
* // error function
206
206
* })
@@ -243,7 +243,7 @@ export default class Query extends Entry {
243
243
/**
244
244
* @method ascending
245
245
* @description Sort fetched entries in the ascending order with respect to a specific field.
246
- * @param {String } key - uid of the field
246
+ * @param {String } key - field uid based on which the ordering will be done
247
247
* @example let blogQuery = Stack().ContentType('example').Query();
248
248
* let data = blogQuery.ascending('created_at').find()
249
249
* data.then(function(result) {
@@ -298,7 +298,7 @@ export default class Query extends Entry {
298
298
* @example let blogQuery = Stack().ContentType('example').Query();
299
299
* let data = blogQuery.skip(5).find()
300
300
* data.then(function(result) {
301
- * // result contains the list of data which is sorted in descending order on created_at bases.
301
+ * // result contains the list of data which is sorted in descending order on ' created_at' bases.
302
302
* },function (error) {
303
303
* // error function
304
304
* })
@@ -370,7 +370,7 @@ export default class Query extends Entry {
370
370
}
371
371
372
372
/**
373
- * @method where()
373
+ * @method where
374
374
* @description Retrieve entries in which a specific field satisfies the value provided
375
375
* @param {String } key - uid of the field
376
376
* @param {* } value - value used to match or compare
@@ -477,19 +477,7 @@ export default class Query extends Entry {
477
477
return this ;
478
478
}
479
479
480
- /**
481
- * @method AddParam
482
- * @description Retrieves entries based on the query provided
483
- * @example blogQuery.addParam('include_count', 'true')
484
- * @example let blogQuery = Stack().ContentType('example').Query();
485
- * let data = blogQuery.addParam('include_count', 'true').find()
486
- * data.then(function(result) {
487
- * // ‘result’ contains the count of object present in array[1] position.
488
- * },function (error) {
489
- * // error function
490
- * })
491
- * @returns {Query }
492
- */
480
+
493
481
addParam ( key , value ) {
494
482
if ( key && value && typeof key === 'string' && typeof value === 'string' ) {
495
483
this . _query [ key ] = value ;
0 commit comments