Enonic version: 2.8.2
OS: YourOS
xpVersion = 7.10.0
In my project, i have created a blog content type
<item-set name="blog_fields">
<label>Blog Details</label>
<items>
<input name="title" type="TextLine" >
<label>Title</label>
</input>
<input name="description" type="TextLine" >
<label>Description</label>
</input>
<input name="main-image" type="ImageSelector" >
<label>Main Image</label>
</input>
<input name="categoryselector" type="ContentSelector">
<label>Category Selector</label>
<occurrences minimum="0" maximum="1"/>
<config>
<allowPath>${site}/blog-categories/</allowPath>
<treeMode>true</treeMode>
<hideToggleIcon>true</hideToggleIcon>
</config>
</input>
<input name="created_on" type="DateTime">
<label>Created on</label>
</input>
<input name="htmlarea" type="HtmlArea">
<label>Html Content for Blog</label>
</input>
</items>
</item-set>
I am using guillotine to fetch data with query and my guillotine version is 6.0.6.
My query is
`query($path:ID!, $first: Int!, $offset: Int!){
guillotine {
query(key:$path, first:$first, offset:$offset, filters: {hasValue: {field: "data.blog_fields.title", stringValues: ["Blog 2", "Blog 3"]}}) {
displayName
_id
hasChildren
_name
__typename
... on myproject_Blog{
data{
blog_fields {
title
description
created_on
read_time
main_image {
... on media_Image {
imageUrl(type: absolute, scale: "width(800)")
_name
}
}
categoryselector {
displayName
_name
_id
... on myproject_Blogcategory{
data {
category_name
}
}
}
}
}
}
}
}
}`
I am able to filter data when i given this value ( field: “data.blog_fields.title” ) then filter is working but i want to filter based on categoryselector field, when i given this value ( field: “data.blog_fields.categoryselector.data.category_name” ) then it is not working.
So how can i achieve this