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

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

Parameters


headers optional Record<string, string>