Skip to content

Allow single response builder after insert select - #1594

Open
Utkarsh3725 wants to merge 1 commit into
supabase:mainfrom
Utkarsh3725:fix-insert-select-single
Open

Allow single response builder after insert select#1594
Utkarsh3725 wants to merge 1 commit into
supabase:mainfrom
Utkarsh3725:fix-insert-select-single

Conversation

@Utkarsh3725

Copy link
Copy Markdown

What kind of change does this PR introduce?

Feature / API parity improvement.

What is the current behavior?

The Python client supports selecting rows after insert, but chaining .single() or .maybe_single() after .insert(...).select(...) does not work.

Closes #1553.

What is the new behavior?

Mutation query builders now support .single() and .maybe_single(), so these work:

client.table("table").insert({"name": "test"}).select("id").single()

client.table("table").insert({"name": "test"}).select("id").maybe_single()

Testing

  • Added sync request builder tests
  • Added async request builder tests
  • Ran focused postgrest request builder tests: 90 passed

@Utkarsh3725
Utkarsh3725 requested review from a team and o-santi as code owners August 26, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow selecting single row after INSERT

1 participant