File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class ContentstackDemo {
26
26
*/
27
27
getEntries ( contentTypeUid ) {
28
28
contentTypeUid = contentTypeUid || 'source'
29
- return this . Stack . ContentType ( 'dinu1234 ' ) . Query ( ) . includeSchema ( ) . toJSON ( ) . find ( )
29
+ return this . Stack . ContentType ( 'test ' ) . Query ( ) . includeContentType ( ) . toJSON ( ) . find ( )
30
30
//return this.Stack.getContentTypes(contentTypeUid)
31
31
32
32
}
@@ -60,9 +60,11 @@ class ContentstackDemo {
60
60
* @params : contentTypeUid {string} - Content-Type from which entries to be retrieved
61
61
* @return : Result {Promise}
62
62
*/
63
- getContentType ( uid ) {
63
+ getContentType ( ) {
64
64
//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 } )
66
68
}
67
69
68
70
/**
You can’t perform that action at this time.
0 commit comments