graphql_schema_annotation library

Annotations read by graphql_schema_generator.

A Dart model needs none of them: a class is a type, its public instance fields are the fields, an enum is an enum, a sealed class is a union and an abstract class is an interface. These four say what the Dart leaves unsaid.

Classes

GraphQLDirective
Declares the class it is placed on as a GraphQL directive.
GraphQLInterface
Publishes an abstract class that a type reaches through extends as a GraphQL interface.
GraphQLScalar
Carries the type it is placed on into the schema as the scalar name.
GraphQLSkip
Keeps the member it is placed on out of the schema.

Enums

DirectiveLocation
A place a directive may be applied, named as the GraphQL specification names it.