angel_graphql@1.0.0
This commit is contained in:
parent
bd2a8e75a6
commit
85aa963f09
6 changed files with 13 additions and 10 deletions
|
@ -1,3 +1,6 @@
|
|||
# 1.0.0
|
||||
* Apply `package:pedantic`.
|
||||
|
||||
# 1.0.0-rc.0
|
||||
* Finish `graphQLWS`.
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
include: package:pedantic/analysis_options.yaml
|
||||
analyzer:
|
||||
strong-mode:
|
||||
implicit-casts: false
|
|
@ -1,3 +1,4 @@
|
|||
// ignore_for_file: deprecated_member_use
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel_framework/http.dart';
|
||||
import 'package:angel_graphql/angel_graphql.dart';
|
||||
|
|
|
@ -6,7 +6,7 @@ import 'package:http_parser/http_parser.dart';
|
|||
/// By default, the interface expects your backend to be mounted at `/graphql`; this is configurable
|
||||
/// via [graphQLEndpoint].
|
||||
RequestHandler graphiQL(
|
||||
{String graphQLEndpoint: '/graphql', String subscriptionsEndpoint}) {
|
||||
{String graphQLEndpoint = '/graphql', String subscriptionsEndpoint}) {
|
||||
return (req, res) {
|
||||
res
|
||||
..contentType = new MediaType('text', 'html')
|
||||
|
@ -18,7 +18,7 @@ RequestHandler graphiQL(
|
|||
}
|
||||
|
||||
String renderGraphiql(
|
||||
{String graphqlEndpoint: '/graphql', String subscriptionsEndpoint}) {
|
||||
{String graphqlEndpoint = '/graphql', String subscriptionsEndpoint}) {
|
||||
var subscriptionsScripts = '',
|
||||
subscriptionsFetcher = '',
|
||||
fetcherName = 'graphQLFetcher';
|
||||
|
|
|
@ -52,7 +52,7 @@ GraphQLFieldResolver<Value, Serialized>
|
|||
/// service will receive [Providers.graphql].
|
||||
GraphQLFieldResolver<Value, Serialized>
|
||||
resolveViaServiceRead<Value, Serialized>(Service<dynamic, Value> service,
|
||||
{String idField: 'id'}) {
|
||||
{String idField = 'id'}) {
|
||||
return (_, arguments) async {
|
||||
var _requestInfo = _fetchRequestInfo(arguments);
|
||||
var params = {'query': _getQuery(arguments), 'provider': Providers.graphQL}
|
||||
|
@ -90,7 +90,7 @@ GraphQLFieldResolver<Value, Serialized>
|
|||
/// service will receive [Providers.graphql].
|
||||
GraphQLFieldResolver<Value, Serialized>
|
||||
resolveViaServiceModify<Value, Serialized>(Service<dynamic, Value> service,
|
||||
{String idField: 'id'}) {
|
||||
{String idField = 'id'}) {
|
||||
return (_, arguments) async {
|
||||
var _requestInfo = _fetchRequestInfo(arguments);
|
||||
var params = {'query': _getQuery(arguments), 'provider': Providers.graphQL}
|
||||
|
@ -113,7 +113,7 @@ GraphQLFieldResolver<Value, Serialized>
|
|||
/// To avoid this, use [resolveViaServiceModify] instead.
|
||||
GraphQLFieldResolver<Value, Serialized>
|
||||
resolveViaServiceUpdate<Value, Serialized>(Service<dynamic, Value> service,
|
||||
{String idField: 'id'}) {
|
||||
{String idField = 'id'}) {
|
||||
return (_, arguments) async {
|
||||
var _requestInfo = _fetchRequestInfo(arguments);
|
||||
var params = {'query': _getQuery(arguments), 'provider': Providers.graphQL}
|
||||
|
@ -132,7 +132,7 @@ GraphQLFieldResolver<Value, Serialized>
|
|||
/// service will receive [Providers.graphql].
|
||||
GraphQLFieldResolver<Value, Serialized>
|
||||
resolveViaServiceRemove<Value, Serialized>(Service<dynamic, Value> service,
|
||||
{String idField: 'id'}) {
|
||||
{String idField = 'id'}) {
|
||||
return (_, arguments) async {
|
||||
var _requestInfo = _fetchRequestInfo(arguments);
|
||||
var params = {'query': _getQuery(arguments), 'provider': Providers.graphQL}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel_graphql
|
||||
version: 1.0.0-rc.0
|
||||
version: 1.0.0
|
||||
description: The fastest + easiest way to get a GraphQL backend in Dart, using Angel.
|
||||
homepage: https://github.com/angel-dart/graphql
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
|
@ -18,6 +18,4 @@ dependencies:
|
|||
dev_dependencies:
|
||||
angel_serialize: ^2.0.0
|
||||
logging: ^0.11.0
|
||||
# dependency_overrides:
|
||||
# graphql_server:
|
||||
# path: ../graphql_server
|
||||
pedantic: ^1.0.0
|
Loading…
Reference in a new issue