Updated angel3-graphql

This commit is contained in:
thomashii 2021-06-14 09:37:53 +08:00
parent 9d9a94965e
commit 16565c26cd
14 changed files with 40 additions and 92 deletions

View file

@ -1,9 +1,9 @@
import 'dart:io'; import 'dart:io';
import 'package:pretty_logging/pretty_logging.dart'; import 'package:angel3_pretty_logging/angel3_pretty_logging.dart';
import 'package:angel/angel.dart'; import 'package:angel/angel.dart';
import 'package:angel_container/mirrors.dart'; import 'package:angel3_container/mirrors.dart';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel_hot/angel_hot.dart'; import 'package:angel3_hot/angel3_hot.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
void main() async { void main() async {

View file

@ -1,6 +1,6 @@
import 'package:angel/angel.dart'; import 'package:angel/angel.dart';
import 'package:angel_container/mirrors.dart'; import 'package:angel3_container/mirrors.dart';
import 'package:angel_production/angel_production.dart'; import 'package:angel3_production/angel3_production.dart';
// NOTE: By default, the Runner class does not use the `MirrorsReflector`, or any // NOTE: By default, the Runner class does not use the `MirrorsReflector`, or any
// reflector, by default. // reflector, by default.

View file

@ -2,7 +2,7 @@
library angel; library angel;
import 'dart:async'; import 'dart:async';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
import 'package:file/local.dart'; import 'package:file/local.dart';
import 'src/config/config.dart' as configuration; import 'src/config/config.dart' as configuration;
import 'src/routes/routes.dart' as routes; import 'src/routes/routes.dart' as routes;

View file

@ -1,9 +1,9 @@
/// Configuration for this Angel instance. /// Configuration for this Angel instance.
library angel.src.config; library angel.src.config;
import 'package:angel_configuration/angel_configuration.dart'; import 'package:angel3_configuration/angel3_configuration.dart';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel_jael/angel_jael.dart'; import 'package:angel3_jael/angel3_jael.dart';
import 'package:file/file.dart'; import 'package:file/file.dart';
import 'plugins/plugins.dart' as plugins; import 'plugins/plugins.dart' as plugins;

View file

@ -2,7 +2,7 @@
library angel.src.config.plugins; library angel.src.config.plugins;
import 'dart:async'; import 'dart:async';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
Future configureServer(Angel app) async { Future configureServer(Angel app) async {
// Include any plugins you have made here. // Include any plugins you have made here.

View file

@ -1,5 +1,5 @@
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel3_serialize/angel3_serialize.dart';
import 'package:graphql_schema/graphql_schema.dart'; import 'package:graphql_schema2/graphql_schema2.dart';
part 'todo.g.dart'; part 'todo.g.dart';
@graphQLClass @graphQLClass

View file

@ -1,7 +1,7 @@
library angel.src.routes.controllers; library angel.src.routes.controllers;
import 'dart:async'; import 'dart:async';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
Future configureServer(Angel app) async { Future configureServer(Angel app) async {
/// Controllers will not function unless wired to the application! /// Controllers will not function unless wired to the application!

View file

@ -1,6 +1,6 @@
import 'package:angel_framework/angel_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel_graphql/angel_graphql.dart'; import 'package:angel3_graphql/angel3_graphql.dart';
import 'package:graphql_server/graphql_server.dart'; import 'package:graphql_server2/graphql_server2.dart';
import 'schema.dart'; import 'schema.dart';
/// Configures the [app] to server GraphQL. /// Configures the [app] to server GraphQL.

View file

@ -1,5 +1,5 @@
import 'package:angel_framework/angel_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
import 'package:graphql_schema/graphql_schema.dart'; import 'package:graphql_schema2/graphql_schema2.dart';
import 'todo.dart'; import 'todo.dart';
/// Creates a GraphQL schema that manages an in-memory store of /// Creates a GraphQL schema that manages an in-memory store of

View file

@ -1,7 +1,7 @@
import 'package:angel/src/models/todo.dart'; import 'package:angel/src/models/todo.dart';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel_graphql/angel_graphql.dart'; import 'package:angel3_graphql/angel3_graphql.dart';
import 'package:graphql_schema/graphql_schema.dart'; import 'package:graphql_schema2/graphql_schema2.dart';
/// Find or create an in-memory Todo store. /// Find or create an in-memory Todo store.
MapService? _getTodoService(Angel app) { MapService? _getTodoService(Angel app) {

View file

@ -1,8 +1,8 @@
/// This app's route configuration. /// This app's route configuration.
library angel.src.routes; library angel.src.routes;
import 'package:angel_framework/angel_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel_static/angel_static.dart'; import 'package:angel3_static/angel3_static.dart';
import 'package:file/file.dart'; import 'package:file/file.dart';
import 'controllers/controllers.dart' as controllers; import 'controllers/controllers.dart' as controllers;
import 'graphql/graphql.dart' as graphql; import 'graphql/graphql.dart' as graphql;

View file

@ -2,7 +2,7 @@
library angel.services; library angel.services;
import 'dart:async'; import 'dart:async';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
/// Configure our application to use *services*. /// Configure our application to use *services*.
/// Services must be wired to the app via `app.use`. /// Services must be wired to the app via `app.use`.

View file

@ -5,72 +5,20 @@ environment:
sdk: '>=2.12.0 <3.0.0' sdk: '>=2.12.0 <3.0.0'
homepage: https://github.com/dukefirehawk/boilerplates homepage: https://github.com/dukefirehawk/boilerplates
dependencies: dependencies:
angel_auth: angel3_auth: ^4.0.0
git: angel3_configuration: ^4.0.0
url: https://github.com/dukefirehawk/angel.git angel3_framework: ^4.0.0
ref: sdk-2.12.x_nnbd angel3_graphql: ^2.0.0
path: packages/auth angel3_jael: ^4.0.0
angel_configuration: angel3_production: ^3.0.0
git: angel3_static: ^4.0.0
url: https://github.com/dukefirehawk/angel.git angel3_validate: ^4.0.0
ref: sdk-2.12.x_nnbd
path: packages/configuration
angel_framework:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/framework
angel_graphql:
git:
url: https://github.com/dukefirehawk/graphql_dart.git
ref: sdk-2.12.x_nnbd
path: angel_graphql
angel_jael:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/jael/angel_jael
angel_production:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/production
angel_static:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/static
angel_validate:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/validate
dev_dependencies: dev_dependencies:
angel_hot: angel3_hot: ^4.0.0
git: angel3_serialize_generator: ^4.0.0
url: https://github.com/dukefirehawk/angel.git angel3_test: ^4.0.0
ref: sdk-2.12.x_nnbd angel3_pretty_logging: ^3.0.0
path: packages/hot graphql_generator2: ^2.0.0
angel_serialize_generator:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/serialize/angel_serialize_generator
angel_test:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/test
pretty_logging:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/pretty_logging
graphql_generator:
git:
url: https://github.com/dukefirehawk/graphql_dart.git
ref: sdk-2.12.x_nnbd
path: graphql_generator
build_runner: ^2.0.4 build_runner: ^2.0.4
io: ^1.0.0 io: ^1.0.0
pedantic: ^1.11.0 pedantic: ^1.11.0

View file

@ -1,6 +1,6 @@
import 'package:angel/angel.dart'; import 'package:angel/angel.dart';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel_test/angel_test.dart'; import 'package:angel3_test/angel3_test.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
// Angel also includes facilities to make testing easier. // Angel also includes facilities to make testing easier.