0

I am figuring out the Sitecore GraphQL Query where I need to use it as a query in my C# code (if that possible) where I just get all the items of a specific location in the Sitecore Tree. However, I may need to filter the item results based on a particular Field Value. And send the results to the JSS frontend. Is it possible to do this?

  • You should write a custom query and then in its implementation you can read the Field Value for the filtering – Hishaam Namooya Oct 17 at 17:02
  • Why do you "need" to use GraphQL from C#? why not just use the Sitecore API? – Richard Seal Oct 17 at 17:48
  • @RichardSeal which Sitecore API do you mean? Am searching for a better performance way to query on Sitecore items, that's why I'm asking about GraphQL – Fatema elsayed Oct 18 at 18:58
  • 1
    The Sitecore API, if you want the best performance, you should look at the Content Search API - that will usually perform the best. Calling GraphQL from C# back end code makes no sense, the GraphQL implementation uses the Sitecore API internally, so you would be just adding an extra layer of processing. – Richard Seal Oct 18 at 21:08
  • @RichardSeal Thank you so much for your help – Fatema elsayed Oct 19 at 23:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.