angel3_graphql
library
Classes
GraphQLUploadType
A GraphQLScalarType that is used to read uploaded files from
multipart/form-data requests.
Functions
graphiQL ({String graphQLEndpoint = '/graphql' , String ? subscriptionsEndpoint })
→ RequestHandler
Returns a simple RequestHandler that renders the GraphiQL visual interface for GraphQL.
graphQLHttp (GraphQL graphQL , {dynamic onSubscription (RequestContext , ResponseContext , Stream <Map <String , dynamic > > )? })
→ RequestHandler
A RequestHandler that serves a spec-compliant GraphQL backend.
graphQLWS (GraphQL graphQL , {Duration ? keepAliveInterval , Duration connectionInitWaitTimeout = const Duration(seconds: 3) , GraphQLWSConnectHandler ? onConnect })
→ RequestHandler
A RequestHandler that serves a spec-compliant GraphQL backend, over
WebSockets. This endpoint only supports WebSockets, and can be used to
deliver subscription events.
renderGraphiql ({String graphqlEndpoint = '/graphql' , String ? subscriptionsEndpoint })
→ String
The GraphiQL page of graphiQL .
resolveViaServiceCreate <Value , Serialized > (Service<dynamic , Value? > service )
→ GraphQLFieldResolver<Value? , Serialized >
A GraphQL resolver that creates a single value in an Angel service.
resolveViaServiceFindOne <Value , Serialized > (Service<dynamic , Value > service )
→ GraphQLFieldResolver<Value , Serialized >
A GraphQL resolver that calls findOne on an Angel service.
resolveViaServiceIndex <Value , Serialized > (Service<dynamic , Value > service )
→ GraphQLFieldResolver<List <Value > , Serialized >
A GraphQL resolver that indexes an Angel service.
resolveViaServiceModify <Value , Serialized > (Service<dynamic , Value? > service , {String idField = 'id' })
→ GraphQLFieldResolver<Value? , Serialized >
A GraphQL resolver that modifies a single value from an Angel service.
resolveViaServiceRead <Value , Serialized > (Service<dynamic , Value > service , {String idField = 'id' })
→ GraphQLFieldResolver<Value , Serialized >
A GraphQL resolver that reads a single value from an Angel service.
resolveViaServiceRemove <Value , Serialized > (Service<dynamic , Value > service , {String idField = 'id' })
→ GraphQLFieldResolver<Value , Serialized >
A GraphQL resolver that removes a single value from an Angel service.
resolveViaServiceUpdate <Value , Serialized > (Service<dynamic , Value? > service , {String idField = 'id' })
→ GraphQLFieldResolver<Value? , Serialized >
A GraphQL resolver that updates a single value from an Angel service.
Typedefs
GraphQLWSConnectHandler
= FutureOr <bool > Function(RequestContext req , Map ? payload )
Decides whether to accept the WebSocket connection of req, given the
payload of its connection_init, such as credentials.