Sanity logo

Documentation

    • Overview
    • Platform introduction
    • Next.js quickstart
    • Nuxt.js quickstart
    • Astro quickstart
    • React Router quickstart
    • Content Lake
    • Compute and AI
    • APIs and SDKs
    • Dashboard
    • Studio
    • Canvas
    • Media Library
    • Build custom apps
    • HTTP API
    • CLI
    • Libraries
    • Specifications
    • Changelog
    • User guides
    • Developer guides
    • Courses and certifications
    • Join the community
    • Templates
Content Lake (Datastore)
Overview

  • Understanding Content Lake

    Technical limits
    API Versioning
    API CDN

  • Datasets and documents

    Datasets
    Hot swap
    Cloud clone
    Backups
    IDs and Paths
    Drafts and versions
    Attribute limit
    Perspectives

  • Querying with GROQ

    Introduction
    Query cheat sheet
    Custom functions
    Query playground
    Syntax reference

  • Querying with GraphQL

    Introduction
    GROQ and GraphQL

  • Assets

    Introduction
    Metadata
    Transformations
    IIIF

  • Content Operations

    Transactions
    Importing Data
    Migrating your schema and content
    Content migration cheat sheet
    Schema migration principles

  • Real-time and dynamic content

    Perspectives for preview and presentation
    Live Content API
    Listening API
    GROQ-powered webhooks
    Webhook Best Practices

  • Security

    Access Your Data (CORS)
    Browser security & CORS
    Keeping your data safe
    Activity Feed

  • Reference

    GROQ Specification
    HTTP API
    Roles, grants, and permissions
    URL Format
    Authentication
    Patches
    Using JSONMatch

Content Lake (Datastore)Last updated May 15, 2025

Query Cheat Sheet - GROQ

  • Article
  • Changelog

Stabilization of the array::intersects() function for GROQ

v2021-10-21

The array::intersects() function for GROQ, previously available in experimental releases, is now fully stable and compatible with all dated API versions. You can now use this function in webhook filters, permission filters, and with groq-js, allowing for more flexible array operations across different contexts.

On this page

  • Filters
  • Text matching
  • Slice Operations
  • Ordering
  • Joins
  • Objects and Arrays
  • Object Projections
  • Special variables
  • Conditionals
  • Handling references conditionally
  • Functions
  • Geolocation
  • Arithmetic and Concatenation
Sanity logosanity.ioAll Systems Operational© Sanity 2025