schema 1.0.2
This commit is contained in:
parent
ff2aa03784
commit
1372043e8f
3 changed files with 19 additions and 4 deletions
|
@ -1,2 +1,6 @@
|
|||
# 1.0.2
|
||||
* Added `GraphQLClass()`.
|
||||
* Added `typeName`.
|
||||
|
||||
# 1.0.1
|
||||
* Dart 2 updates.
|
|
@ -129,7 +129,7 @@ class GraphExceptionErrorLocation {
|
|||
}
|
||||
}
|
||||
|
||||
typedef GraphQLType _GraphDocumentationTypeProvider();
|
||||
typedef GraphQLType GraphDocumentationTypeProvider();
|
||||
|
||||
/// A metadata annotation used to provide documentation to `package:graphql_server`.
|
||||
class GraphQLDocumentation {
|
||||
|
@ -141,8 +141,19 @@ class GraphQLDocumentation {
|
|||
|
||||
/// A constant callback that returns an explicit type for the annotated field, rather than having it be assumed
|
||||
/// via `dart:mirrors`.
|
||||
final _GraphDocumentationTypeProvider type;
|
||||
final GraphDocumentationTypeProvider type;
|
||||
|
||||
/// The name of an explicit type for the annotated field, rather than having it be assumed.
|
||||
final Symbol typeName;
|
||||
|
||||
const GraphQLDocumentation(
|
||||
{this.description, this.deprecationReason, GraphQLType this.type()});
|
||||
{this.description, this.deprecationReason, this.type, this.typeName});
|
||||
}
|
||||
|
||||
/// The canonical instance.
|
||||
const GraphQLClass graphQLClass = const GraphQLClass._();
|
||||
|
||||
/// Signifies that a class should statically generate a [GraphQLSchema].
|
||||
class GraphQLClass {
|
||||
const GraphQLClass._();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: graphql_schema
|
||||
version: 1.0.1
|
||||
version: 1.0.2
|
||||
description: An implementation of GraphQL's type system in Dart.
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/graphql
|
||||
|
|
Loading…
Reference in a new issue