File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export class ContentType {
46
46
* import contentstack from '@contentstack/delivery-sdk'
47
47
*
48
48
* const stack = contentstack.stack({ apiKey: "apiKey", deliveryToken: "deliveryToken", environment: "environment" });
49
- * const result = await stack.contentType(asset_uid ).fetch();
49
+ * const result = await stack.contentType(contenttype_uid ).fetch();
50
50
*/
51
51
async fetch < T > ( ) : Promise < T > {
52
52
const response = await getData ( this . _client , this . _urlPath ) ;
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ export class Entries extends EntryQueryable {
202
202
* import contentstack from '@contentstack/delivery-sdk'
203
203
*
204
204
* const stack = contentstack.stack({ apiKey: "apiKey", deliveryToken: "deliveryToken", environment: "environment" });
205
- * const result = await stack.contentType('abc').entry().variant ('xyz').find();
205
+ * const result = await stack.contentType('abc').entry().variants ('xyz').find();
206
206
*/
207
207
variants ( variants : string | string [ ] ) : Entries {
208
208
if ( Array . isArray ( variants ) && variants . length > 0 ) {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export class Entry {
43
43
* import contentstack from '@contentstack/delivery-sdk'
44
44
*
45
45
* const stack = contentstack.stack({ apiKey: "apiKey", deliveryToken: "deliveryToken", environment: "environment" });
46
- * const result = await stack.contentType('abc').entry('entry_uid').variant ('xyz').fetch();
46
+ * const result = await stack.contentType('abc').entry('entry_uid').variants ('xyz').fetch();
47
47
*/
48
48
variants ( variants : string | string [ ] ) : Entry {
49
49
if ( Array . isArray ( variants ) && variants . length > 0 ) {
Original file line number Diff line number Diff line change @@ -312,9 +312,9 @@ export class Query extends BaseQuery {
312
312
* import contentstack from '@contentstack/delivery-sdk'
313
313
*
314
314
* const stack = contentstack.stack({ apiKey: "apiKey", deliveryToken: "deliveryToken", environment: "environment" });
315
- * const query1 = stack.contentType('contenttype_uid').Entry ().query().containedIn('fieldUID', ['value']);
316
- * const query2 = stack.contentType('contenttype_uid').Entry ().query().where('fieldUID', QueryOperation.EQUALS, 'value2');
317
- * const query = await stack.contentType('contenttype_uid').Entry ().query().or(query1, query2).find();
315
+ * const query1 = stack.contentType('contenttype_uid').entry ().query().containedIn('fieldUID', ['value']);
316
+ * const query2 = stack.contentType('contenttype_uid').entry ().query().where('fieldUID', QueryOperation.EQUALS, 'value2');
317
+ * const query = await stack.contentType('contenttype_uid').entry ().query().or(query1, query2).find();
318
318
*
319
319
* @returns {Query }
320
320
*/
Original file line number Diff line number Diff line change 7
7
# Contentstack Configuration
8
8
9
9
Stack = contentstack.stack({
10
- "api_key ": "",
11
- "delivery_token ": "",
10
+ "apiKey ": "",
11
+ "deliveryToken ": "",
12
12
"environment": ""
13
13
});
14
14
You can’t perform that action at this time.
0 commit comments