supabase-go icon indicating copy to clipboard operation
supabase-go copied to clipboard

cannot unmarshal array into Go value of type RequestError

Open nathananderson98 opened this issue 1 year ago • 7 comments

Based on the sparse readme examples, I've got an insert query that looks like

var results map[string]interface{}  // I also tried the type RequestError, no luck
err := supaClient.DB.From("table").Insert(user).Execute(results)

All other operations I've tried yield similar results. Any ideas on how to avoid this error being returned? The operations seem to be working in Supabase (rows are inserted), but the err object is always this message.

Also, I have no idea how to go about building queries with this wrapper, are there any resources to point to? I'm glad to write up some docs for this wrapper if I can get some guidance.

Thanks for the work of putting this together!

nathananderson98 avatar Sep 22 '22 06:09 nathananderson98