Skip to content

setHeaders()

Use nhost.graphql.setHeaders to set global headers to be sent in all subsequent graphql requests

nhost.graphql.setHeaders({
'x-hasura-role': 'admin'
})

headers optional Record<string, string>