My question is based on already asked question and can be found here Sitecore Filtering by Field Value on Query of GraphQL
This question is marked as answered by @jan-bluemink but I am facing the problem mentioned in the comment section for the given answered.
When i am trying to executing below search query in my GraphQL browser.
{
search(
fieldsEqual:[{name:"title", value:"Sit*" }] rootItem:"/sitecore/content"
) {
results {
items {
item {
id
name
path
url
field(name : "title") {
title: value
}
}
}
totalCount
}
}
}
I am getting the error.
Cannot query field \"search\" on type \"Query\".
I checked my configuration and i found the line
<queries hint="raw:AddQuery">
<query name="item" type="Sitecore.Services.GraphQL.Content.Queries.ItemQuery, Sitecore.Services.GraphQL.Content"/>
<query name="search" type="Sitecore.Services.GraphQL.Content.Queries.SearchQuery, Sitecore.Services.GraphQL.Content"/>
</queries>
in the Sitecore.Services.GraphQL.Content.config
file. But when i checked it into the GraphQL schema using /sitecore/api/graphendpoint/schema
, I didn't find any reference of search there.
What could be the issue?