For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Kotlin: Limit the number of rows returned

Limit the query result by count.

Parameters

Examples

With `select()`

supabase.from("characters").select {
    limit(count = 1)
}

On a foreign table

val columns = Columns.raw("""
    name,
    instruments (
        name
    )
""")
supabase.from("orchestral_sections").select(
    columns = columns
) {
    limit(count = 1, referencedTable = "instruments")
}