Format everything
This commit is contained in:
parent
b259c2c5b8
commit
eb1db3c554
8 changed files with 10 additions and 7 deletions
|
@ -23,7 +23,8 @@ GraphQLObjectField<T, Serialized> field<T, Serialized>(
|
|||
String name, GraphQLType<T, Serialized> type,
|
||||
{Iterable<GraphQLFieldInput<T, Serialized>> inputs: const [],
|
||||
GraphQLFieldResolver<T, Serialized> resolve,
|
||||
String deprecationReason, String description}) {
|
||||
String deprecationReason,
|
||||
String description}) {
|
||||
return new GraphQLObjectField<T, Serialized>(name, type,
|
||||
arguments: inputs,
|
||||
resolve: resolve,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
part of graphql_schema.src.schema;
|
||||
|
||||
/// Represents the result of asserting an input [value] against a [GraphQLType].
|
||||
|
||||
class ValidationResult<Value> {
|
||||
|
|
|
@ -96,7 +96,8 @@ main() {
|
|||
var u = new GraphQLUnionType('Monster', [pokemonType, digimonType]);
|
||||
|
||||
expect(u.serialize({'size': 10.0}), {'size': 10.0});
|
||||
expect(u.serialize({'name': 'Charmander', 'type': 'FIRE'}), {'name': 'Charmander', 'type': 'FIRE'});
|
||||
expect(u.serialize({'name': 'Charmander', 'type': 'FIRE'}),
|
||||
{'name': 'Charmander', 'type': 'FIRE'});
|
||||
});
|
||||
|
||||
test('nested object', () {
|
||||
|
|
Loading…
Reference in a new issue