I am trying to get all post that are in a category. The code above is retrieving all categories as expected. and from the post key I am getting date. The problem is that the post key is showing all post regardless if they are in the category. I only want it to show the post in that category. Is there a way to do this. I am using the default blog schema
That worked great. I feel I have a lot to learn. Is there a query generator
Aug 15, 2023, 4:15 PM
Glad that the solution worked for you :) I am not aware of any query generators unfortunately.For learning purposes, you can also take a look at the GROQ arcade in addition to the Vision plugin and GROQ in 45 min .
Aug 15, 2023, 4:28 PM
I was able to get the same result using openai
Aug 15, 2023, 6:21 PM
using sanity groq how do you retrieve all posts from a certain category