Commit Graph

2063 Commits

Author SHA1 Message Date
Edward Rudd
dd548bb046 correct adding implicit interfaces to the schema introspection
If an interface is added manually (as it is not directly referenced by any type) it was not showing up in the introspection.

Now it will be exposed if it is visible and references already accessible types
2021-12-04 19:33:15 -05:00
Sunli
d2a71377a9
Merge pull request #737 from tilpner/tracing-name-error
fix(tracing): add name to error event
2021-12-04 15:16:41 +08:00
Sunli
dc8efaed19
Merge pull request #727 from Eijebong/lets-avoid-dupes
Update darling to 0.13 and bump version
2021-12-04 15:15:49 +08:00
Sunli
031f2391b5 Add some helper methods for BatchRequest.
- BatchRequest::iter
- BatchRequest::iter_mut
- BatchRequest::variables
- BatchRequest::data
- BatchRequest::disable_introspection
2021-12-04 15:14:42 +08:00
Sunli
2c6c0c6c71 Update examples 2021-12-04 14:59:33 +08:00
Sunli
d5e55e7f31 Update CHANGELOG.md 2021-12-04 14:41:52 +08:00
Sunli
3aecc43365 Fix deadlock in dataloader. #555 2021-12-04 14:33:47 +08:00
Sunli
bd578d59f2
Merge branch 'master' into lets-avoid-dupes 2021-12-03 09:08:58 +08:00
tilpner
99275b8093
fix(tracing): add name to error event
According to the opentelemetry specification for traces [0], each span
must have a non-empty name.

[0]: https://github.com/open-telemetry/oteps/blob/main/text/trace/0059-otlp-trace-data-format.md

>  // This field is semantically required to be set to non-empty string.
>  //
>  // This field is required.
>  string name = 6;
2021-12-02 15:59:49 +01:00
Sunli
214f7b297a Release 3.0.11
async-graphql@3.0.11

Generated by cargo-workspaces
2021-12-02 20:25:43 +08:00
Sunli
1cecffb21d Update CHANGELOG.md 2021-12-02 20:25:27 +08:00
Sunli
58bb3442cd Update book #736 2021-12-02 20:22:11 +08:00
Sunli
71deda0523 Fix panic on f32-64::INFINITE/f32-64::NEG_INFINITE/f32-64::NAN output. #735 2021-12-02 20:19:17 +08:00
Sunli
f7b6e9820f Release 3.0.10
async-graphql@3.0.10
async-graphql-derive@3.0.10

Generated by cargo-workspaces
2021-11-30 13:46:42 +08:00
Sunli
40a7192919 Fix the custom validator cannot work on Option<Vec<T>>. 2021-11-30 13:46:23 +08:00
Sunli
fcad1006ef Release 3.0.9
async-graphql@3.0.9
async-graphql-derive@3.0.9

Generated by cargo-workspaces
2021-11-30 12:04:26 +08:00
Sunli
7034734cb4 Fix the validator cannot work on Option<Vec<T>>. 2021-11-30 12:03:55 +08:00
Sunli
d8f68e9c83 Release 3.0.8
async-graphql@3.0.8
async-graphql-derive@3.0.8

Generated by cargo-workspaces
2021-11-30 09:48:33 +08:00
Sunli
5f1e9e9e59 Update CHANGELOG.md 2021-11-30 09:47:42 +08:00
Sunli
7a488aa607 Update README 2021-11-30 09:46:18 +08:00
lfn3
7b80386d49 Add support for SmolStr via a feature.
SmolStr is an immutable "packed" string that uses the space normally occupied
by a String's header if the String is short enough.
2021-11-30 09:44:33 +08:00
Sunli
b7ba6844af #[grapql(validator(list))] no longer applies to max_items and min_items. 2021-11-30 09:40:02 +08:00
Sunli
7b0d2fbefc
Merge pull request #729 from Emilgardis/Emilgardis/issue728
add missing impls for `serde_json::Value`
2021-11-29 23:40:52 +08:00
Emil Gardström
7e062cf489
add missing impls serde_json::Value
Fixes #728
2021-11-29 15:14:27 +01:00
Bastien Orivel
19161e6b8d Update darling to 0.13 and bump version 2021-11-29 11:11:32 +01:00
Sunli
3e586a0f11 Update examples 2021-11-25 16:31:06 +08:00
Sunli
a4dc0e7d61
Merge pull request #721 from jly36963/fix-environment-spelling
docs: environment spelling
2021-11-24 07:36:26 +08:00
Landon Yarrington
4d7b9ef736 docs: environment spelling 2021-11-23 13:48:51 -07:00
Sunli
c1cb7f5717 Release 3.0.7
async-graphql@3.0.7
async-graphql-actix-web@3.0.7
async-graphql-axum@3.0.7
async-graphql-derive@3.0.7
async-graphql-parser@3.0.7
async-graphql-poem@3.0.7
async-graphql-rocket@3.0.7
async-graphql-tide@3.0.7
async-graphql-value@3.0.7
async-graphql-warp@3.0.7

Generated by cargo-workspaces
2021-11-23 09:07:28 +08:00
Sunli
f6fe15554d Fix error extensions cause stack overflow #719 2021-11-23 09:02:52 +08:00
Sunli
e1df643d4f Update CHANGELOG.md 2021-11-21 12:37:31 +08:00
Sunli
10646216cc Update docs 2021-11-20 11:16:48 +08:00
Sunli
c6f536f73d Release 3.0.6
async-graphql@3.0.6
async-graphql-actix-web@3.0.6
async-graphql-axum@3.0.6
async-graphql-derive@3.0.6
async-graphql-parser@3.0.6
async-graphql-poem@3.0.6
async-graphql-rocket@3.0.6
async-graphql-tide@3.0.6
async-graphql-value@3.0.6
async-graphql-warp@3.0.6

Generated by cargo-workspaces
2021-11-20 09:06:47 +08:00
Sunli
81e4cc2142 Custom directive 2021-11-20 09:04:46 +08:00
Sunli
03aaf7d64f Release 3.0.5
async-graphql@3.0.5
async-graphql-actix-web@3.0.5
async-graphql-axum@3.0.5
async-graphql-derive@3.0.5
async-graphql-parser@3.0.5
async-graphql-poem@3.0.5
async-graphql-rocket@3.0.5
async-graphql-tide@3.0.5
async-graphql-value@3.0.5
async-graphql-warp@3.0.5

Generated by cargo-workspaces
2021-11-19 08:35:16 +08:00
Sunli
4a2eef7aa6 Update CHANGELOG.md 2021-11-19 08:35:03 +08:00
Sunli
c79eaad006 Update book 2021-11-19 08:29:45 +08:00
Sunli
2e1f8d1a63 bump actix-web from 4.0.0-beta.10 to 4.0.0-beta.11 2021-11-19 08:18:21 +08:00
Sunli
5c5187c078 Add tide integration 2021-11-19 08:10:47 +08:00
Sunli
477c3ba78a Update CHANGELOG.md 2021-11-18 20:17:05 +08:00
Sunli
e0c557a1a6 Add DirectivesUnique rule 2021-11-18 20:14:56 +08:00
Sunli
26275aaa4b Remove skipped fields from the document before executing the query. 2021-11-18 19:37:10 +08:00
Sunli
b4c454a583 Release 3.0.4
async-graphql@3.0.4
async-graphql-actix-web@3.0.4
async-graphql-axum@3.0.4
async-graphql-derive@3.0.4
async-graphql-parser@3.0.4
async-graphql-poem@3.0.4
async-graphql-rocket@3.0.4
async-graphql-value@3.0.4
async-graphql-warp@3.0.4

Generated by cargo-workspaces
2021-11-18 16:01:56 +08:00
Sunli
94816b84dc Allowed use validators on wrapper types, for example: Option<T>, MaybeUnefined<T>.
Remove `OutputJson` because `Json` can replace it.
2021-11-18 15:43:12 +08:00
Sunli
be2da65e51 Release 3.0.3
async-graphql@3.0.3
async-graphql-actix-web@3.0.3
async-graphql-axum@3.0.3
async-graphql-derive@3.0.3
async-graphql-parser@3.0.3
async-graphql-poem@3.0.3
async-graphql-rocket@3.0.3
async-graphql-value@3.0.3
async-graphql-warp@3.0.3

Generated by cargo-workspaces
2021-11-18 09:30:32 +08:00
Sunli
7275c7ded8 Make GraphQLWebSocket::new use generic stream.
Add `GraphQLWebSocket::new_with_pair` method.
2021-11-18 09:25:32 +08:00
Sunli
d97714c560 Release 3.0.2
async-graphql@3.0.2
async-graphql-actix-web@3.0.2
async-graphql-axum@3.0.2
async-graphql-derive@3.0.2
async-graphql-parser@3.0.2
async-graphql-poem@3.0.2
async-graphql-rocket@3.0.2
async-graphql-value@3.0.2
async-graphql-warp@3.0.2

Generated by cargo-workspaces
2021-11-17 17:03:48 +08:00
Sunli
723bb10912 Add url, regex and ip validators. 2021-11-17 11:12:52 +08:00
Sunli
6cadf5f01f Release 3.0.1
async-graphql@3.0.1
async-graphql-actix-web@3.0.1
async-graphql-axum@3.0.1
async-graphql-derive@3.0.1
async-graphql-parser@3.0.1
async-graphql-poem@3.0.1
async-graphql-rocket@3.0.1
async-graphql-value@3.0.1
async-graphql-warp@3.0.1

Generated by cargo-workspaces
2021-11-17 08:49:52 +08:00
Sunli
d3078e73d0 Remove the ctx parameter of CustomValidator::check. #710 2021-11-17 08:46:13 +08:00