extend desc
This commit is contained in:
parent
1372043e8f
commit
57d30d7a20
4 changed files with 13 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
import 'package:angel_model/angel_model.dart';
|
import 'package:angel_model/angel_model.dart';
|
||||||
import 'episode.dart';
|
import 'episode.dart';
|
||||||
|
|
||||||
abstract class _Character extends Model {
|
abstract class Character extends Model {
|
||||||
String get id;
|
String get id;
|
||||||
|
|
||||||
String get name;
|
String get name;
|
||||||
|
|
|
@ -153,6 +153,3 @@ GraphQLFieldResolver randomHeroResolver(
|
||||||
return allHeroes.isEmpty ? null : allHeroes[rnd.nextInt(allHeroes.length)];
|
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;
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: graphql_schema
|
name: graphql_schema
|
||||||
version: 1.0.2
|
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>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/graphql
|
homepage: https://github.com/angel-dart/graphql
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -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 'dart:mirrors';
|
||||||
|
|
||||||
import 'package:angel_serialize/angel_serialize.dart';
|
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
|
/// This function is aware of the annotations from `package:angel_serialize`, and works seamlessly
|
||||||
/// with them.
|
/// with them.
|
||||||
|
@deprecated
|
||||||
GraphQLType convertDartType(Type type, [List<Type> typeArguments]) {
|
GraphQLType convertDartType(Type type, [List<Type> typeArguments]) {
|
||||||
if (_cache[type] != null) {
|
if (_cache[type] != null) {
|
||||||
return _cache[type];
|
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.
|
/// Shorthand for [convertDartType], for when you know the result will be an object type.
|
||||||
|
@deprecated
|
||||||
GraphQLObjectType convertDartClass(Type type, [List<Type> typeArguments]) {
|
GraphQLObjectType convertDartClass(Type type, [List<Type> typeArguments]) {
|
||||||
return convertDartType(type, typeArguments) as GraphQLObjectType;
|
return convertDartType(type, typeArguments) as GraphQLObjectType;
|
||||||
}
|
}
|
||||||
|
@ -69,6 +76,7 @@ GraphQLType _objectTypeFromDartType(Type type, [List<Type> typeArguments]) {
|
||||||
return objectTypeFromClassMirror(clazz);
|
return objectTypeFromClassMirror(clazz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@deprecated
|
||||||
GraphQLObjectType objectTypeFromClassMirror(ClassMirror mirror) {
|
GraphQLObjectType objectTypeFromClassMirror(ClassMirror mirror) {
|
||||||
if (_cache[mirror.reflectedType] != null) {
|
if (_cache[mirror.reflectedType] != null) {
|
||||||
return _cache[mirror.reflectedType] as GraphQLObjectType;
|
return _cache[mirror.reflectedType] as GraphQLObjectType;
|
||||||
|
@ -193,6 +201,7 @@ GraphQLObjectType objectTypeFromClassMirror(ClassMirror mirror) {
|
||||||
return result as GraphQLObjectType;
|
return result as GraphQLObjectType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@deprecated
|
||||||
GraphQLEnumType enumTypeFromClassMirror(ClassMirror mirror) {
|
GraphQLEnumType enumTypeFromClassMirror(ClassMirror mirror) {
|
||||||
var values = <GraphQLEnumValue>[];
|
var values = <GraphQLEnumValue>[];
|
||||||
|
|
||||||
|
@ -217,6 +226,7 @@ GraphQLEnumType enumTypeFromClassMirror(ClassMirror mirror) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@deprecated
|
||||||
GraphQLObjectField fieldFromGetter(
|
GraphQLObjectField fieldFromGetter(
|
||||||
Symbol name, MethodMirror mirror, Exclude exclude, ClassMirror clazz) {
|
Symbol name, MethodMirror mirror, Exclude exclude, ClassMirror clazz) {
|
||||||
var type = _getProvidedType(mirror.metadata);
|
var type = _getProvidedType(mirror.metadata);
|
||||||
|
|
Loading…
Reference in a new issue