extend desc

This commit is contained in:
Tobe O 2019-02-03 15:26:08 -05:00
parent 1372043e8f
commit 57d30d7a20
4 changed files with 13 additions and 6 deletions

View file

@ -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;

View file

@ -153,6 +153,3 @@ GraphQLFieldResolver randomHeroResolver(
return allHeroes.isEmpty ? null : allHeroes[rnd.nextInt(allHeroes.length)];
};
}
Service mountService<T extends Model>(Angel app, String path) =>
app.use(path, new TypedService(new MapService())) as Service;

View file

@ -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 <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/graphql
environment:

View file

@ -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<Type> typeArguments]) {
if (_cache[type] != null) {
return _cache[type];
@ -17,6 +23,7 @@ GraphQLType convertDartType(Type type, [List<Type> typeArguments]) {
}
/// Shorthand for [convertDartType], for when you know the result will be an object type.
@deprecated
GraphQLObjectType convertDartClass(Type type, [List<Type> typeArguments]) {
return convertDartType(type, typeArguments) as GraphQLObjectType;
}
@ -69,6 +76,7 @@ GraphQLType _objectTypeFromDartType(Type type, [List<Type> 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 = <GraphQLEnumValue>[];
@ -217,6 +226,7 @@ GraphQLEnumType enumTypeFromClassMirror(ClassMirror mirror) {
);
}
@deprecated
GraphQLObjectField fieldFromGetter(
Symbol name, MethodMirror mirror, Exclude exclude, ClassMirror clazz) {
var type = _getProvidedType(mirror.metadata);