GraphQLQueryBuilder class
A builder class for constructing GraphQL queries.
This class provides a flexible and type-safe way to build GraphQL queries using a pattern-matching approach.
Constructors
-
GraphQLQueryBuilder({required String name, List<
QueryParameter> parameters = const [], List<QueryFragment> fragments = const []}) -
Creates a new GraphQLQueryBuilder with the given
name,parameters, andfragments.
Properties
-
fragments
→ List<
QueryFragment> -
The fragments to be included in the query.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the GraphQL query.
final
-
parameters
→ List<
QueryParameter> -
The parameters to be included in the query.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
variables
→ Map<
String, dynamic> -
Generates a map of variables for the GraphQL query.
no setter
Methods
-
buildQuery(
) → String - Builds the complete GraphQL query string.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited