Hi,
I use GraphQL (REST) to consume data from DatoCMS.
How can I get the itemTypeId a long with item data?
With below query, I can have _modelApiKey (which is “article”), but it is not enough.
{
list: allArticles {
id
title
__typename
_modelApiKey
}
}
The intention is I want to support Admin/Editor , when viewing the content in visitor mode, can go directly to the edit panel inside DatoCms of the specific content via link like this
https://tennishanoicom.admin.datocms.com/editor/item_types/180236/items/2259750/edit
where 180236 is itemTypeId, and 2259750 is contentId.
With years of developing CMS, I feel this is a good fit for DatoCMS API in general