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.
Return at most one row. When no row matches, value is nil. Decode into an optional type to get the nil.
PostgrestError with code PGRST116 and status 406, the same error that single() throws.maybeSingle() requests the usual JSON array and counts the rows in the client. On a write, such as update(...).select().maybeSingle(), every matched row is written before the count is checked. Use single() if PostgREST must roll back the write when more than one row matches.let todo: Todo? = try await supabase
.from("todos")
.select()
.eq("id", value: 42)
.maybeSingle()
.execute()
.value