Sunli
c350d182ce
When an error occurs in the query, the Tracing extension can output the error message.
2020-09-26 09:49:46 +08:00
Sunli
089e830d26
Add StringNumber type.
2020-09-26 09:22:54 +08:00
Sunli
3e19b23178
Remove unnecessary features for tide and warp integrations.
2020-09-26 08:35:17 +08:00
Koxiaet
aae4c29dd0
Reduce code duplication in batches in actix web
2020-09-25 17:38:12 +01:00
Sunli
5eef10a1c4
Make uuid
to optional dependent.
2020-09-25 15:40:04 +08:00
Sunli
b316c30416
Add data_XXX methods to ResolveInfo and remove context field from ResolveInfo. #260
2020-09-25 15:26:29 +08:00
Sunli
8a82954f0b
Improve tracing
2020-09-25 15:01:55 +08:00
Sunli
390aac5ddd
Merge pull request #275 from simplificAR/export_description
...
Export description with `Registry::export_sdl`
2020-09-24 09:21:47 +08:00
Koxiaet
9e98d79c88
Rustfmt and write ARCHITECTURE.md
2020-09-23 20:23:15 +01:00
Koxiaet
e97a7d9def
Publicize resolver utils and move Scalar there
2020-09-23 19:50:35 +01:00
Koxiaet
70d2dbc39c
Big improvements to tide integration
2020-09-23 18:30:03 +01:00
Daniel Wiesenberg
eeb38b69cf
Run Rustfmt and Clippy
2020-09-23 15:54:33 +02:00
Daniel Wiesenberg
125eb74fbc
Export description with Registry::export_sdl
2020-09-23 15:47:04 +02:00
Sunli
312b8f13d8
Add Schema::sdl
method. #191
2020-09-23 14:14:22 +08:00
Koxiaet
6947d95030
Merge branch 'master' of github.com-koxiaet:async-graphql/async-graphql into master
2020-09-22 20:03:33 +01:00
Koxiaet
49462cf05f
Move some validations to parser
...
This commit moves the single anonymous and duplicated operation name
validation rules into the parser, allowing for a nicer format to be
exposed by it. It also adds better error messages to the parser.
2020-09-22 19:59:48 +01:00
Sunli
47329b9458
Add Request::extension method. #271
2020-09-21 15:53:07 +08:00
Sunli
7eb2143b2c
Implement Serialize/Deserialize for MaybeUndefine<T>.
2020-09-21 15:22:45 +08:00
Sunli
e12ae8b236
Add BatchRequest support for actixweb and warp integrations.
2020-09-21 14:57:33 +08:00
Sunli
92c5db674a
Merge pull request #272 from mwilliammyers/feat/maybe-undefined
...
Remove Deserialize impl from MaybeUndefined
2020-09-21 07:56:47 +08:00
William Myers
b1763de1ea
Remove Deserialize impl from MaybeUndefined
...
Change Serialize implementation to use the `untagged` attribute.
This handles the common case of directly serializing `MaybeUndefined`,
but deserializing into an `Option<T>`. We could add a more sophisticated
custom deserialize implementation later.
2020-09-20 13:22:51 -07:00
Sunli
22420ee7ec
Make ObjectType is public.
2020-09-20 15:47:17 +08:00
Sunli
679385b5de
Fix docs
2020-09-20 13:34:49 +08:00
Sunli
1f009c6e57
Merge branch 'master' of https://github.com/async-graphql/async-graphql
2020-09-20 13:28:25 +08:00
Sunli
20d240df47
Fix enum strings in query variables are not converted to proper enums. #270
2020-09-20 13:28:18 +08:00
William Myers
c117cc0bf5
Add more trait implementations to MaybeUndefined
...
Closes #267
2020-09-19 14:10:54 -07:00
Koxiaet
6095383019
Warp: Replace BoxedFilter
with impl Filter
2020-09-19 18:10:46 +01:00
Koxiaet
d2489eca0b
Reexport async-graphql-parser
2020-09-19 06:14:59 +01:00
Sunli
73333035bd
Fix compiling without features
2020-09-18 15:14:40 +08:00
Sunli
c1d4dbed87
2.0.0-alpha.12
2020-09-18 15:05:07 +08:00
Sunli
45dc3d6d09
Add Upload::into_async_read with blocking
2020-09-18 14:32:00 +08:00
Sunli
e645e9d999
Remove the GQL prefix of all macros. #208
2020-09-18 09:10:24 +08:00
Koxiaet
07d2204773
Remove code duplication for batch requests
2020-09-17 19:43:03 +01:00
Koxiaet
d52268523f
Merge branch 'master' of github.com-koxiaet:async-graphql/async-graphql into master
2020-09-17 19:23:15 +01:00
Koxiaet
890b282dd9
Improve websockets
2020-09-17 19:22:54 +01:00
Sunli
76257403e2
Add support for batch queries.
2020-09-17 19:54:12 +08:00
Sunli
34eaa1d686
Some improvements.
2020-09-17 11:22:09 +08:00
Sunli
5d705afeb4
Update docs
2020-09-17 09:03:36 +08:00
Sunli
70556af838
Add test for ErrorExtensions.
2020-09-17 08:47:41 +08:00
Koxiaet
e2f53cc30f
Document features
2020-09-15 19:32:13 +01:00
Sunli
492bba1cdd
Move http::websocket::create and http::websocket::create_with_initializer function to http::WebSocketStream.
2020-09-15 20:07:59 +08:00
Sunli
6b71ba87de
Rework websocket
...
a
2020-09-15 11:49:07 +08:00
Sunli
86a6a34aac
http::websocket::create function now returns the WebSocketStream type.
2020-09-15 11:19:00 +08:00
Sunli
1e430b9c11
Remove InputObjectType and add InputValueType/OutputValueType to docs
2020-09-15 09:31:55 +08:00
Koxiaet
c2f34b90e5
Rustfmt
2020-09-14 20:20:15 +01:00
Koxiaet
d2b1dd4cab
Fix compiling without features
2020-09-14 20:16:41 +01:00
Koxiaet
c546b87de6
Improved serialize_resp
2020-09-14 19:56:12 +01:00
Koxiaet
a3ad1aac30
Remove and feature-gate dependencies
2020-09-14 19:38:41 +01:00
Sunli
42817a3aa6
Implement Type for more stdlib collection types #189
...
Implement InputValueType/OutputValueType for HashSet<T>/BTreeSet<T>/VecDeque<T>/LinkedList<T>
Implement ScalarType for char/NonZero*/HashMap<String,T>/BTreeMap<String, T>
2020-09-14 20:06:44 +08:00
Sunli
99ff3a8b96
Update README.md
2020-09-14 14:13:43 +08:00
Sunli
1ab5da63ef
Improve websocket
2020-09-14 10:44:56 +08:00
Sunli
01f02c6bc1
Fix the problem that the compilation fails when the compilation parameter is --no-default-features
.
...
Update mod.rs
2020-09-14 09:54:55 +08:00
Sunli
5bb705bdf3
2.0.0-alpha.5
2020-09-14 09:46:22 +08:00
Sunli
fd35272f62
Improve registry
2020-09-14 08:37:15 +08:00
Sunli
6e5153c8b1
Remove unnecessary memory allocation in websocket.
2020-09-14 08:25:00 +08:00
Koxiaet
6e628031bf
Rework subscriptions
...
The main change in this commit is changing the return type of
SubscriptionType::create_stream from
Future<Result<Stream<Result<Response>>>> to just Stream<Result<Json>>. I
also allowed the returned stream to borrow from self and context.
2020-09-13 18:52:36 +01:00
Koxiaet
8d92454fc3
Support !Unpin in receive_body with pin project
2020-09-13 11:49:07 +01:00
Koxiaet
367076cd66
Remove SimpleBroker
2020-09-13 10:47:28 +01:00
Koxiaet
6cf7e78ea9
Restructure types module
2020-09-13 10:38:19 +01:00
Koxiaet
d4eed93ad4
Remove unused idx parameter on subscription
2020-09-13 08:13:56 +01:00
Koxiaet
06a52dc936
Improve lookahead
2020-09-13 08:02:14 +01:00
Koxiaet
9796364348
Move websockets to http module and fix doc tests
2020-09-13 07:40:34 +01:00
Sunli
24b80d52d3
Remove all attribute macros that can be replaced by derive.
2020-09-13 11:41:15 +08:00
Koxiaet
b8add03d53
Remove Deref for ContextBase
2020-09-12 17:42:15 +01:00
Koxiaet
dcc7d1be14
Replace http::GQLRequest with Request
2020-09-12 17:07:46 +01:00
Sunli
79bcf5f710
Hide async_graphql::resolver_utils module in docs.
...
l:
2020-09-12 21:47:11 +08:00
Sunli
adcd36a0bf
Remove async_graphql::http::StreamBody
...
l:
2020-09-12 21:44:34 +08:00
Sunli
e136f90ba6
Delete serde.rs
2020-09-12 21:27:14 +08:00
Koxiaet
35e74a4e17
Create resolver_utils
2020-09-12 10:29:52 +01:00
Sunli
1320d1ae45
Change MultipartOptions to a builder.
2020-09-12 07:43:50 +08:00
Sunli
857afb1f54
Fix a little bug.
2020-09-11 23:43:26 +08:00
Sunli
c2e32c2ea1
async-graphql-tide 2.0
2020-09-11 22:17:17 +08:00
Sunli
a4fdf6a38a
Re-enable the test on websocket.
2020-09-11 16:41:56 +08:00
Sunli
c129079f69
Fix tests
2020-09-11 16:05:21 +08:00
Sunli
049b652dd6
Add transports::websocket module.
2020-09-11 15:54:56 +08:00
Sunli
ec670adb6c
Clippy clean
2020-09-11 10:51:20 +08:00
Sunli
35f17a389c
Remove unnecessary Result on Schema::execute_stream function.
2020-09-11 10:47:55 +08:00
Sunli
91c75ced2a
Make all tests passed (async-graphql).
2020-09-10 19:35:48 +08:00
Sunli
22d6e20da3
Merge changes.
2020-09-10 16:54:38 +08:00
Sunli
13f094b67e
Merge branch '2.0' of github.com:async-graphql/async-graphql into 2.0
2020-09-10 16:43:24 +08:00
Sunli
f3c0d86f12
Continue to refactor.
2020-09-10 16:39:43 +08:00
Koxiaet
3945599015
Move HTTP functions to HTTP module
2020-09-10 08:04:24 +01:00
Sunli
ce0683e1f9
Initial attempt.
2020-09-10 12:49:08 +08:00
Sunli
53a7314666
Rustfmt
2020-09-10 09:09:55 +08:00
Koxiaet
f770501557
Remove anyhow, byteorder and base64 dependencies
2020-09-09 17:34:23 +01:00
Koxiaet
f1af4ea195
Merge branch 'master' of github.com-koxiaet:async-graphql/async-graphql into master
2020-09-09 17:06:36 +01:00
Koxiaet
45a08e9b00
Reorder dependencies and remove dependency on mime
2020-09-09 17:03:33 +01:00
Sunli
c397156657
Merge branch 'master' of https://github.com/async-graphql/async-graphql
2020-09-09 18:42:58 +08:00
Sunli
a4a5847d4f
Add context to ResolveInfo. #260
2020-09-09 18:42:10 +08:00
Koxiaet
2f80e484d1
Fix Tide tests
2020-09-08 11:07:32 +01:00
Koxiaet
ea7e4eaf2a
Fix tests
2020-09-08 10:19:25 +01:00
Koxiaet
324e65f3dd
Merge branch 'master' into master
2020-09-08 09:48:01 +01:00
Koxiaet
f9ce6118b2
Merge branch 'master' of github.com-koxiaet:Koxiaet/async-graphql into master
2020-09-08 09:32:37 +01:00
Koxiaet
04c898ef01
Rustfmt
2020-09-08 09:30:29 +01:00
Koxiaet
47259548c4
Support service parsing in async-graphql-parser
...
- Instead of adding a separate module `schema` like there was before,
since service parsing and executable parsing have a fair amount of
overlap I put them as two submodules `executable` and `service` in both
`parse` and `types`. Also, the grammar is unified under one `.pest`
file.
- Added const equivalents to `Value`, `Directive` etc
- Change the reexport `async_graphql::Value` from
`async_graphql_parser::types::Value` to
`async_graphql_parser::types::ConstValue` since in 99% of cases in this library
a const value is wanted instead of a value.
- Added consistent usage of executable/service instead of the ambiguous
query/schema.
- Some of the tests actually had invalid GraphQL so the new more correct
grammar made them fail, that was fixed.
- Added a `Name` newtype to refer to GraphQL names
(`[A-Za-z_][A-Za-z_0-9]*`) since they are used so frequently.
2020-09-08 09:21:27 +01:00
Sunli
175a48875e
Remove historical code that is no longer used.
2020-09-07 18:53:03 +08:00
Sunli
e2c9de9183
Clippy cleanup
2020-09-06 18:59:38 +08:00
Sunli
ca84859f46
Make all tests pass.
2020-09-06 18:53:24 +08:00
Koxiaet
1c26ff124f
Merge branch 'master' into master
2020-09-06 07:20:18 +01:00
Koxiaet
c055736101
Rustfmt
2020-09-06 07:16:36 +01:00