Reputation: 2725
Can we get all entries by providing multiple content_types:
I have the following code which can only get all entries by one content_type:
cf_space.getEntries({content_type: "contentTypeId"}).then(function(contentTypes){
});
But can we do like getting multiple entries by providing comma separated entryIds:
var entryIds = "id1,id2";
cf_space.getEntries({'sys.id[in]': entryIds}).then(function(entries) {
});
I need to get all entries of each content_type.
Any help is appreciated.
Thanks
Upvotes: 0
Views: 4184
Reputation: 127
This is possible by using the following.
sys.contentType.sys.id[in]=[content_type1],[content_type2],...
See https://www.contentfulcommunity.com/t/how-to-query-on-multiple-content-types/473 for details.
Upvotes: 2
Reputation: 1457
Nope, this is not possible. You'll have to do two separate requests.
Upvotes: 3