supabase-community / postgrest-go

Isomorphic Go client for PostgREST. (Now Updating)
https://supabase.io
Apache License 2.0
170 stars 27 forks source link

New Execute Method for json objects #7

Closed yusufpapurcu closed 3 years ago

yusufpapurcu commented 3 years ago

I think we need new execution method for json object. As an example if client wants inserted data's id, user must unmarshall result and took id from object.

How can I do?

You can create new execution method in execute.go. You must create function executeTo. And take byte array and unmarshall it to interface. After that you must add this method to all structs.

You are welcome to contribute 💯 We are excited to see your PR's 🚀