graphql_schema_annotation 0.1.0
graphql_schema_annotation: ^0.1.0 copied to clipboard
Annotations read by graphql_schema_generator: GraphQL directives, interfaces and scalars, declared on the plain Dart classes the schema is generated from.
0.1.0 #
First release.
@GraphQLDirectivedeclares the class it is placed on as a GraphQL directive. The fields of the class are the arguments of the directive, and an instance of it applies the directive where Dart allows an annotation: a class, a field, a getter, a method, a parameter, an enum or one of its constants.@GraphQLInterfacepublishes an abstract class reached throughextendsas a GraphQL interface. One reached throughimplementsis already one.@GraphQLScalarcarries a type into the schema under a scalar name, which is how anextension typereachesID.@GraphQLSkipkeeps a member out of the schema, and follows it when it is renamed.DirectiveLocationholds the 19 locations the GraphQL specification defines.