Skip to content

Commit 5443d8d

Browse files
Vikram KaltaVikram Kalta
authored andcommitted
fix: more fixes
1 parent 6900d56 commit 5443d8d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/lib/content-type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class ContentType {
4646
* import contentstack from '@contentstack/delivery-sdk'
4747
*
4848
* 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();
5050
*/
5151
async fetch<T>(): Promise<T> {
5252
const response = await getData(this._client, this._urlPath);

src/lib/entries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class Entries extends EntryQueryable {
202202
* import contentstack from '@contentstack/delivery-sdk'
203203
*
204204
* 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();
206206
*/
207207
variants(variants: string | string[]): Entries {
208208
if (Array.isArray(variants) && variants.length > 0) {

src/lib/entry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class Entry {
4343
* import contentstack from '@contentstack/delivery-sdk'
4444
*
4545
* 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();
4747
*/
4848
variants(variants: string | string[]): Entry {
4949
if (Array.isArray(variants) && variants.length > 0) {

src/lib/query.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ export class Query extends BaseQuery {
312312
* import contentstack from '@contentstack/delivery-sdk'
313313
*
314314
* 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();
318318
*
319319
* @returns {Query}
320320
*/

test/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# Contentstack Configuration
88

99
Stack = contentstack.stack({
10-
"api_key": "",
11-
"delivery_token": "",
10+
"apiKey": "",
11+
"deliveryToken": "",
1212
"environment": ""
1313
});
1414

0 commit comments

Comments
 (0)