I am trying to use Contentful in the current project, and I am trying to figure out how to filter the results of my query based on the field in the linked object.
My top level object contains a link defined as such:
"name": "Service_Description",
"fields": [
{
"name": "Header",
"id": "header",
"type": "Link",
"linkType": "Entry",
"required": true,
"validations": [
{
"linkContentType": [
"offerGeneral"
]
}
],
"localized": false,
"disabled": false,
"omitted": false
},
This header field refers to another type of content that has this definition:
"fields": [
{
"name": "General",
"id": "general",
"type": "Link",
"linkType": "Entry",
"required": true,
"validations": [
{
"linkContentType": [
"genericGeneral"
]
}
],
"localized": false,
"disabled": false,
"omitted": false
},
which then refers to the lower level:
"fields": [{
"name": "TagList",
"id": "tagList",
"type": "Array",
"items": {
"type": "Link",
"linkType": "Entry",
"validations": [
{
"linkContentType": [
"tag"
]
}
]
},
"validations": []
}
where tagList is an array of tags that this piece of content can have.
I want to be able to run a request from a top-level object that says to get me the X number of these Service_Description content entries, where it contains a tag from the provided tag list.
In PostMan, I worked with this:
https://cdn.contentful.com/spaces/{SPACE_ID}/entries?access_token={ACCESS_TOKEN}&content_type=serviceDescription&include=3
I am trying to add a filter something like this:
fields.header.fields.general.fields.tagList.sys.id%5Bin%5D={TAG_SYS_ID}
, , . , , , , , .
, ?