2018-08-02 13:31:54 +00:00
|
|
|
part of graphql_schema.src.schema;
|
|
|
|
|
|
|
|
class GraphQLFieldArgument<Value, Serialized> {
|
|
|
|
final String name;
|
|
|
|
final GraphQLType<Value, Serialized> type;
|
|
|
|
final Value defaultValue;
|
2018-08-02 13:50:31 +00:00
|
|
|
|
|
|
|
/// If [defaultValue] is `null`, and `null` is a valid value for this argument, set this to `true`.
|
|
|
|
final bool defaultsToNull;
|
|
|
|
|
|
|
|
GraphQLFieldArgument(this.name, this.type,
|
|
|
|
{this.defaultValue, this.defaultsToNull: false});
|
2018-08-02 13:31:54 +00:00
|
|
|
}
|