VendureRemoteDataSource class

Data source responsible for executing GraphQL operations against the Vendure remote API. This class encapsulates the request pipeline: operation preparation (custom-field sanitization), enum normalization via VendureUtils, GraphQL client execution, error handling, and response data extraction.

The public methods mirror those previously in CustomOperations so that CustomOperations can delegate without any signature change.

Constructors

VendureRemoteDataSource({required Future<GraphQLClient> getClient(), Map<String, List>? customFieldsConfig})

Properties

customFieldsConfig → Map<String, List>?
Optional custom-field configuration forwarded to VendureUtils.sanitizeGraphQLQuery.
final
getClient → Future<GraphQLClient> Function()
Async factory that returns a fully-configured GraphQLClient. In the facade this backs getClient() which builds the link chain (apiKey header, vendure-token, App Check, Authorization Bearer), appends the languageCode query param, and applies timeout / cache policies.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

mutate<T>(String mutation, Map<String, dynamic> variables, {T fromJson(Map<String, dynamic>)?, String? expectedDataType, bool convertEnums = true, bool retryOnTransientNetworkErrors = true}) → Future<T>
mutateList<T>(String mutation, Map<String, dynamic> variables, {T fromJson(Map<String, dynamic>)?, String? expectedDataType, bool convertEnums = false, bool retryOnTransientNetworkErrors = true}) → Future<List<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query<T>(String query, Map<String, dynamic> variables, {T fromJson(Map<String, dynamic>)?, String? expectedDataType, bool convertEnums = false}) → Future<T>
queryList<T>(String query, Map<String, dynamic> variables, {T fromJson(Map<String, dynamic>)?, String? expectedDataType, bool convertEnums = false}) → Future<List<T>>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited