Skip to content

Commit 5ff5d04

Browse files
Made changes for global fields
1 parent d3c977b commit 5ff5d04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/node/contentstack-demo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ class ContentstackDemo {
6060
* @params : contentTypeUid {string} - Content-Type from which entries to be retrieved
6161
* @return : Result {Promise}
6262
*/
63-
getContentType() {
63+
getContentType(uid) {
6464
//contentTypeUid = contentTypeUid || 'source'
6565
// 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})
66+
// return this.Stack.ContentType(uid).Entry("blta07130f8b344b260").includeReferenceContentTypeUID().includeSchema().toJSON().fetch()
67+
//return this.Stack.getContentTypes({"include_global_field_schema": true})
6868
}
6969

7070
/**

0 commit comments

Comments
 (0)