From 57d30d7a202223d5e9261227114749e2bfc3da51 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sun, 3 Feb 2019 15:26:08 -0500 Subject: [PATCH] extend desc --- example_star_wars/lib/src/models/character.dart | 2 +- example_star_wars/lib/star_wars.dart | 5 +---- graphql_schema/pubspec.yaml | 2 +- graphql_server/lib/mirrors.dart | 10 ++++++++++ 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/example_star_wars/lib/src/models/character.dart b/example_star_wars/lib/src/models/character.dart index 1a8cbd9c..2e040a66 100644 --- a/example_star_wars/lib/src/models/character.dart +++ b/example_star_wars/lib/src/models/character.dart @@ -1,7 +1,7 @@ import 'package:angel_model/angel_model.dart'; import 'episode.dart'; -abstract class _Character extends Model { +abstract class Character extends Model { String get id; String get name; diff --git a/example_star_wars/lib/star_wars.dart b/example_star_wars/lib/star_wars.dart index e3c9656a..2683a8e2 100644 --- a/example_star_wars/lib/star_wars.dart +++ b/example_star_wars/lib/star_wars.dart @@ -152,7 +152,4 @@ GraphQLFieldResolver randomHeroResolver( return allHeroes.isEmpty ? null : allHeroes[rnd.nextInt(allHeroes.length)]; }; -} - -Service mountService(Angel app, String path) => - app.use(path, new TypedService(new MapService())) as Service; +} \ No newline at end of file diff --git a/graphql_schema/pubspec.yaml b/graphql_schema/pubspec.yaml index 00f55d0d..73480516 100644 --- a/graphql_schema/pubspec.yaml +++ b/graphql_schema/pubspec.yaml @@ -1,6 +1,6 @@ name: graphql_schema version: 1.0.2 -description: An implementation of GraphQL's type system in Dart. +description: An implementation of GraphQL's type system in Dart. Basis of graphql_server. author: Tobe O homepage: https://github.com/angel-dart/graphql environment: diff --git a/graphql_server/lib/mirrors.dart b/graphql_server/lib/mirrors.dart index e16ad0b3..8dda6694 100644 --- a/graphql_server/lib/mirrors.dart +++ b/graphql_server/lib/mirrors.dart @@ -1,3 +1,8 @@ +/// `dart:mirrors` functionality for this package will soon be removed; +/// use `package:graphql_generator` to generate schemas instead. +@deprecated +library graphql_server.mirrors; + import 'dart:mirrors'; import 'package:angel_serialize/angel_serialize.dart'; @@ -8,6 +13,7 @@ import 'package:recase/recase.dart'; /// /// This function is aware of the annotations from `package:angel_serialize`, and works seamlessly /// with them. +@deprecated GraphQLType convertDartType(Type type, [List typeArguments]) { if (_cache[type] != null) { return _cache[type]; @@ -17,6 +23,7 @@ GraphQLType convertDartType(Type type, [List typeArguments]) { } /// Shorthand for [convertDartType], for when you know the result will be an object type. +@deprecated GraphQLObjectType convertDartClass(Type type, [List typeArguments]) { return convertDartType(type, typeArguments) as GraphQLObjectType; } @@ -69,6 +76,7 @@ GraphQLType _objectTypeFromDartType(Type type, [List typeArguments]) { return objectTypeFromClassMirror(clazz); } +@deprecated GraphQLObjectType objectTypeFromClassMirror(ClassMirror mirror) { if (_cache[mirror.reflectedType] != null) { return _cache[mirror.reflectedType] as GraphQLObjectType; @@ -193,6 +201,7 @@ GraphQLObjectType objectTypeFromClassMirror(ClassMirror mirror) { return result as GraphQLObjectType; } +@deprecated GraphQLEnumType enumTypeFromClassMirror(ClassMirror mirror) { var values = []; @@ -217,6 +226,7 @@ GraphQLEnumType enumTypeFromClassMirror(ClassMirror mirror) { ); } +@deprecated GraphQLObjectField fieldFromGetter( Symbol name, MethodMirror mirror, Exclude exclude, ClassMirror clazz) { var type = _getProvidedType(mirror.metadata);