0

I'm trying to get data using GraphQL query with using search and get it when testing at /sitecore/api/graph/items/master/ui window enter image description here- search really work, but when I look at the React component data using Chrome tools - here such exception "Cannot query field \"search\" on type \"Query\"." enter image description here I look at my GraphQL config and schema and search already included in Query typeenter image description here enter image description here Other type of query work normallu

1 Answer 1

0

I fixed it by adding GraphQL settings into the config file in jss project (in folder sitecore/config/{name-of-your-application}) and deploy this file to sitecore instance (cause I work in integrated mode with JSS - https://jss.sitecore.com/docs/techniques/graphql/integrated-graphql#integrated-graphql-in-jss-apps)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.