🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Possibility to exclude the `query` attribute in the HTTP API result discussed.

2 replies
Last updated: May 15, 2024
Is it possible to disclude the
attribute in the HTTP API result? (https://www.sanity.io/docs/http-query#6qMYj0OG ). This makes the response payload very large and uncachable in Next.js
May 9, 2024, 2:46 PM
I checked the API request parameters in the codebase, and I’m afraid there doesn’t appear to be anything that would let you exclude
in the response.
May 11, 2024, 3:24 PM
user B
I was wrong. I just came across the
query parameter. When set to false, it doesn’t return the query.
I’ll file this with the Docs team to have it added to the documentation.
May 15, 2024, 6:38 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?