@@ -80,7 +80,7 @@ const _extend = {
8080
8181/**
8282 * @summary
83- * Creates an instance of ` Query` .
83+ * Creates an instance of ' Query' .
8484 * @description
8585 * An initializer is responsible for creating Query object.
8686 * @example
@@ -103,7 +103,7 @@ export default class Query extends Entry {
103103 * @example let blogQuery = Stack().ContentType('example').Query();
104104 * let data = blogQuery.lessThan('created_at','2015-06-22').find()
105105 * 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'
107107 * },function (error) {
108108 * // error function
109109 * })
@@ -119,7 +119,7 @@ export default class Query extends Entry {
119119 * @example let blogQuery = Stack().ContentType('example').Query();
120120 * let data = blogQuery.lessThanOrEqualTo('created_at','2015-06-22').find()
121121 * 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'.
123123 * },function (error) {
124124 * // error function
125125 * })
@@ -130,12 +130,12 @@ export default class Query extends Entry {
130130 * @method greaterThan
131131 * @description Retrieves entries in which the value for a field is greater than the provided value.
132132 * @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
134134 * @example
135135 * let blogQuery = Stack().ContentType('example').Query();
136136 * let data = blogQuery.greaterThan('created_at','2015-03-12').find()
137137 * 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'
139139 * },function (error) {
140140 * // error function
141141 * })
@@ -151,7 +151,7 @@ export default class Query extends Entry {
151151 * @example let blogQuery = Stack().ContentType('example').Query();
152152 * let data = blogQuery.greaterThanOrEqualTo('created_at','2015-03-12').find()
153153 * 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'
155155 * },function (error) {
156156 * // error function
157157 * })
@@ -200,7 +200,7 @@ export default class Query extends Entry {
200200 * @example let blogQuery = Stack().ContentType('example').Query();
201201 * let data = blogQuery.notContainedIn('title', ['Demo', 'Welcome']).find()
202202 * 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’
204204 * },function (error) {
205205 * // error function
206206 * })
@@ -243,7 +243,7 @@ export default class Query extends Entry {
243243 /**
244244 * @method ascending
245245 * @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
247247 * @example let blogQuery = Stack().ContentType('example').Query();
248248 * let data = blogQuery.ascending('created_at').find()
249249 * data.then(function(result) {
@@ -298,7 +298,7 @@ export default class Query extends Entry {
298298 * @example let blogQuery = Stack().ContentType('example').Query();
299299 * let data = blogQuery.skip(5).find()
300300 * 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.
302302 * },function (error) {
303303 * // error function
304304 * })
@@ -370,7 +370,7 @@ export default class Query extends Entry {
370370 }
371371
372372 /**
373- * @method where()
373+ * @method where
374374 * @description Retrieve entries in which a specific field satisfies the value provided
375375 * @param {String } key - uid of the field
376376 * @param {* } value - value used to match or compare
@@ -477,19 +477,7 @@ export default class Query extends Entry {
477477 return this ;
478478 }
479479
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+
493481 addParam ( key , value ) {
494482 if ( key && value && typeof key === 'string' && typeof value === 'string' ) {
495483 this . _query [ key ] = value ;
0 commit comments