GROQ Readability Helper π€
Less is more - We're breaking down some of the core helpers we use when building our websites
Go to GROQ Readability Helper π€Less is more - We're breaking down some of the core helpers we use when building our websites
Go to GROQ Readability Helper π€Search documents that are tagged with at least one of these tag slugs
Go to Filter Content by Multiple TagsGet all content that references the current document
Go to Backlinks QueryThis is a simple starting off point to allow users to organize a page
Go to Page Builder StarterSometimes you need to change only one key-value-pair in your data, this is how you can do it in 2 lines
Go to Create a copy of an object and change a key-value pairOkay, well it might be at least in the top 3. Using getDimensions and optimising the hell out of your images, check out this snippet
Go to The best Next.js & Sanity <Image/> ComponentIf you want to pass a parameter to a query that might not always be defined
Go to Handle Certain Values To Be TrueThis bash script can be used to delete documents using sanity cli.
Go to Delete documents using sanity cliHow to validate nested fields from the document or object level
Go to Validation of children in objectsGet parents parent in reference filter
Go to Get parents parent in reference filterA script to validate that your schema is free of errors and warnings
Go to Validate schema scriptA little 'hack' when you work on custom Document actions
Go to 'Hacking' custom Document Actions πA custom validation to check if your Microcopy documents have unique keys and values for a specific namespace.
Go to Is your Microcopy unique?Setting up a live preview and want to fetch a document's draft, with a fallback for the published document when there are no drafts? Check this out.
Go to Select draft OR published documentThis validation can be used if you have two fields and you require one or the other to be filled
Go to One or the other validationThis snippet can be used to fetch current, previous and next articles based on publication date and related tags.
Go to Get current, previous and next post, filtered by tagsValidation of url input to allow certain URI schemes (mailto, tel and more included)
Go to Validation of url input to allow certain URI schemes