https://supabase.com/ logo
Hi folks, have a qq. I'm using invoke() to call an...
# javascript
r
Hi folks, have a qq. I'm using invoke() to call an edge function on node. How can I access the headers in the response? Currently, if i try data.headers, it says that the function doesn't exist. Thanks a lot
Copy code
const {data, error} = await supabase.functions.invoke('get-message', {
    responseType: 'multipart/form-data',
    body: JSON.stringify({
        params
    })
});