Skip to content

Commit ac9fc7a

Browse files
updated the name from snippet to global_field
1 parent 649bc97 commit ac9fc7a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/node/contentstack-demo.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ContentstackDemo {
2626
*/
2727
getEntries(contentTypeUid) {
2828
contentTypeUid = contentTypeUid || 'source'
29-
return this.Stack.ContentType('dinu1234').Query().includeSchema().toJSON().find()
29+
return this.Stack.ContentType('test').Query().includeContentType().toJSON().find()
3030
//return this.Stack.getContentTypes(contentTypeUid)
3131

3232
}
@@ -60,9 +60,11 @@ class ContentstackDemo {
6060
* @params : contentTypeUid {string} - Content-Type from which entries to be retrieved
6161
* @return : Result {Promise}
6262
*/
63-
getContentType(uid) {
63+
getContentType() {
6464
//contentTypeUid = contentTypeUid || 'source'
65-
return this.Stack.getContentType(uid)
65+
// return this.Stack.getContentType(uid)
66+
// return this.Stack.ContentType(uid).fetch({"include_global_field_schema": false})
67+
return this.Stack.getContentTypes({"include_global_field_schema": false})
6668
}
6769

6870
/**

0 commit comments

Comments
 (0)