VendureRawDataSource class abstract
The raw escape hatch the custom operations ride: execute a document and get the UNTYPED extracted payload (the caller supplies no decoder). Same envelope and error path as VendureDataSource.query.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
executeRaw(
String document, {required Map< String, dynamic> variables, required Map<String, String> headers, required String? expectedDataType, required bool isMutation}) → Future -
Executes
documentand returns the extracted payload as-is (no typed decode) — the custom operations' escape hatch. -
mutate<
T> (String document, {required Map< String, dynamic> variables, required Map<String, String> headers, T fromJson(Map<String, dynamic> json)?, required String? expectedDataType}) → Future<T> -
Executes a GraphQL mutation document — same envelope and error path
as query.
inherited
-
mutateWithHeaders<
T> (String document, {required Map< String, dynamic> variables, required Map<String, String> headers, required T fromJson(Map<String, dynamic> json), required String? expectedDataType}) → Future<VendureResponse< T> > -
Executes a mutation and returns the decoded data TOGETHER with the
HTTP response headers — the auth seam needs this: the Vendure session
token rides the
vendure-auth-tokenresponse header, not the body.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query<
T> (String document, {required Map< String, dynamic> variables, required Map<String, String> headers, T fromJson(Map<String, dynamic> json)?, required String? expectedDataType}) → Future<T> -
Executes a GraphQL query document with
variablesandheaders, returning the decodedTextracted from the response'sexpectedDataTypekey (the Vendure response envelope:{data: {<expectedDataType>: …}}).inherited -
queryList<
T> (String document, {required Map< String, dynamic> variables, required Map<String, String> headers, T fromJson(Map<String, dynamic> json)?, required String? expectedDataType}) → Future<List< T> > -
Executes a query whose expected data type is a LIST (the Vendure list
envelope:
{data: {<expectedDataType>: […]}}— the extracted payload itself is the list), decoding each element withfromJson.inherited -
subscribe<
T> (String document, {required Map< String, dynamic> variables, required Map<String, String> headers, required T fromJson(Map<String, dynamic> json), required String? expectedDataType}) → Stream<T> -
Subscribes to a GraphQL subscription document — a stream of decoded
Tevents (the Vendure live streams:activeCustomerStream, …). The transport owns the WebSocket lifecycle.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited