call()
Use nhost.functions.call
to call (sending a POST request to) a serverless function.
await nhost.functions.call('send-welcome-email', {
email: 'joe@example.com',
name: 'Joe Doe'
})
Parameters
url required string
data required D
config optional AxiosRequestConfig<any>