javascript insert record #3350
-
const { data, error } = await supabase If name is a required field, the above will not insert |
Beta Was this translation helpful? Give feedback.
Answered by
silentworks
Sep 29, 2021
Replies: 1 comment
-
You have the error object that is returned so you can inspect it and see what comes back. Also when doing single inserts, just pass an object to the insert function instead of an array. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alanbar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have the error object that is returned so you can inspect it and see what comes back. Also when doing single inserts, just pass an object to the insert function instead of an array.