ContentService
is used to get the data of the base theme configured in Admin Panel. You can import the ContentService
from the experro-storefront
package.
ContentService
provides.
getSingleTypeContent
getCollectionRecordsByCollectionInternalName
getCollectionTypeContentById
getMenuById
getContentModelRecordsByFieldKeyValue
modelName
as the property.
id
, versionId
, modelName
, and componentId
.
getCollectionRecordsByCollectionInternalName
function call.
id
in ssrKey
should be any unique value for each API call. If same duplicate id is found, it may behave differently.
menuId
.
fieldsToQuery
e.g.,
Property | Description | Type |
---|---|---|
sortBy | Field to sort by. | String |
sortType | The direction to sort ascending or descending as ASC or DESC . | String |
limit | Number of records you want to fetch. | Number |
skip | Number of records you want to skip. | Number |
sortBy
and sortType
limit
and skip