2019-04-18 15:23:12 +00:00
|
|
|
import 'package:graphql_schema/graphql_schema.dart';
|
|
|
|
part 'main.g.dart';
|
|
|
|
|
|
|
|
@graphQLClass
|
2019-04-25 09:55:23 +00:00
|
|
|
class TodoItem {
|
2019-04-18 15:23:12 +00:00
|
|
|
String text;
|
|
|
|
|
|
|
|
@GraphQLDocumentation(description: 'Whether this item is complete.')
|
|
|
|
bool isComplete;
|
|
|
|
}
|
|
|
|
|
|
|
|
void main() {
|
2019-04-25 09:55:23 +00:00
|
|
|
print(todoItemGraphQLType.fields.map((f) => f.name));
|
2019-04-18 15:23:12 +00:00
|
|
|
}
|