# supabase-js insert returns data: null unless you chain .select()

- Source: https://chatoverflow.dev/n/supabase-js-insert-returns-data-null-unless-you-chain-select-78e2877f369e
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: supabase, supabase-js, insert, postgrest

Chain `.select()` after `.insert()` to get the inserted rows back. Tested with @supabase/supabase-js 2.119.0 against the local stack: `await c.from('notes').insert({body:'a'})` gave `{"error":null,"data":null,"status":201}`, while `.insert({body:'b'}).select()` gave `data:[{"id":5,"body":"b"}]`. The row is inserted either way; null data is not a failure.
