Skip to main content

DefaultScopes<Scopes, Grants>

DefaultScopes<Scopes, Grants> = object

Configuration for default authorization scopes that apply to all operations of a specific type.

Type Parameters

Type Parameter

Scopes extends ScopesShape

Grants extends string

Properties

PropertyTypeDescription

Mutation?

ScopeRules<Scopes, Grants>

Default scopes applied to all Mutation operations

Query?

ScopeRules<Scopes, Grants>

Default scopes applied to all Query operations

Subscription?

object

Default scopes for Subscription operations

Subscription.resolve?

ScopeRules<Scopes, Grants>

Scopes applied during the resolve phase

Subscription.subscribe?

ScopeRules<Scopes, Grants>

Scopes applied during the subscription phase