I have a Headless Sitecore .NET Rendering SDK solution very close to the helix example solution.
I can access the playground through: /sitecore/api/graph/edge/ui
Queries such as the following work fine and return results:
query {
item(path: "/sitecore/content/Site1", language: "en") {
name
children{
results {
id
name
}
}
}
}
However, when I try to make use of the "search" I get no results
For example:
query {
search(
where: {
AND: [
{ name: "_hasLayout", value: "true" }
]
}
first: 10
) {
results {
id
name
}
}
}
This returns the following:
{
"data": {
"search": {
"results": []
}
}
}
Why would I be getting no results?