platform/graphql_schema/test/common.dart
2018-08-04 15:18:53 -04:00

15 lines
490 B
Dart

import 'package:graphql_schema/graphql_schema.dart';
final GraphQLObjectType pokemonType = objectType('Pokemon', fields: [
field('species', graphQLString),
field('catch_date', graphQLDate)
]);
final GraphQLObjectType trainerType =
objectType('Trainer', fields: [field('name', graphQLString)]);
final GraphQLObjectType pokemonRegionType = objectType('PokemonRegion',
fields: [
field('trainer', trainerType),
field('pokemon_species', listType(pokemonType))
]);