schema-load
Schema loading event class.
Eventsβ
SchemaEventβ
Defined in: core/src/events/schema-load.ts:16
Event emitted before/after loading a GraphQL schema.
Extendsβ
DataEvent<{rootTypes?:Maybe<SchemaMap>;schema?:Maybe<GraphQLSchema>;schemaLocation?:string; }>
Constructorsβ
Constructorβ
new SchemaEvent(data, options?): SchemaEvent;
Defined in: core/src/events/schema-load.ts:21
Parametersβ
dataβ
rootTypes?β
Maybe<SchemaMap>
schema?β
Maybe<GraphQLSchema>
schemaLocation?β
string
options?β
Returnsβ
Overridesβ
Propertiesβ
dataβ
readonly data: object;
Defined in: utils/dist/events.d.ts:111
Read-only event data payload.
rootTypes?β
optional rootTypes?: Maybe<SchemaMap>;
schema?β
optional schema?: Maybe<GraphQLSchema>;
schemaLocation?β
optional schemaLocation?: string;
Inherited fromβ
Accessorsβ
defaultActionβ
Get Signatureβ
get defaultAction(): DefaultAction | undefined;
Defined in: utils/dist/events.d.ts:78
Gets the default action function if one was provided.
Returnsβ
DefaultAction | undefined
Inherited fromβ
defaultPreventedβ
Get Signatureβ
get defaultPrevented(): boolean;
Defined in: utils/dist/events.d.ts:70
Gets whether the default action has been prevented.
Returnsβ
boolean
Set Signatureβ
set defaultPrevented(value): void;
Defined in: utils/dist/events.d.ts:82
Allows setting defaultPrevented to true directly.
Parametersβ
valueβ
boolean
Returnsβ
void
Inherited fromβ
propagationStoppedβ
Get Signatureβ
get propagationStopped(): boolean;
Defined in: utils/dist/events.d.ts:74
Gets whether propagation has been stopped.
Returnsβ
boolean
Set Signatureβ
set propagationStopped(value): void;
Defined in: utils/dist/events.d.ts:86
Allows setting propagationStopped to true directly.
Parametersβ
valueβ
boolean
Returnsβ
void
Inherited fromβ
Methodsβ
preventDefault()β
preventDefault(): void;
Defined in: utils/dist/events.d.ts:91
Prevents the default action from executing. Only works if the event is cancellable.
Returnsβ
void
Inherited fromβ
runDefaultAction()β
runDefaultAction(): Promise<void>;
Defined in: utils/dist/events.d.ts:100
Executes the default action for an event if it hasn't been prevented.
Returnsβ
Promise<void>
Inherited fromβ
stopPropagation()β
stopPropagation(): void;
Defined in: utils/dist/events.d.ts:96
Stops propagation to remaining event handlers. Handlers registered after the current one will not execute.
Returnsβ
void