Commit Graph

1915 Commits

Author SHA1 Message Date
Sunli
c41f87c645 rustfmt 2021-12-05 09:43:44 +08:00
Sunli
ffedb9556b Merge pull request #741 from urkle/fix-interfaces
Fix implicit interfaces not being exposed via the __schema introspection
2021-12-05 09:41:56 +08:00
Edward Rudd
5c8ff9d3a6 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
000a3a3bd5 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
3e815b2873 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
922c2324e2 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
19ac121228 Update examples 2021-12-04 14:59:33 +08:00
Sunli
2a8ddd80fd Update CHANGELOG.md 2021-12-04 14:41:52 +08:00
Sunli
9280cf80a8 Fix deadlock in dataloader. #555 2021-12-04 14:33:47 +08:00
Sunli
2afacf6bcc Merge branch 'master' into lets-avoid-dupes 2021-12-03 09:08:58 +08:00
tilpner
1659367579 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
56cf5c1d0c Release 3.0.11
async-graphql@3.0.11

Generated by cargo-workspaces
2021-12-02 20:25:43 +08:00
Sunli
49864ca398 Update CHANGELOG.md 2021-12-02 20:25:27 +08:00
Sunli
167426175f Update book #736 2021-12-02 20:22:11 +08:00
Sunli
09be5e0021 Fix panic on f32-64::INFINITE/f32-64::NEG_INFINITE/f32-64::NAN output. #735 2021-12-02 20:19:17 +08:00
Sunli
0bc0283012 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
86f10c5397 Fix the custom validator cannot work on Option<Vec<T>>. 2021-11-30 13:46:23 +08:00
Sunli
5fcf552a93 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
c0a257dc7d Fix the validator cannot work on Option<Vec<T>>. 2021-11-30 12:03:55 +08:00
Sunli
28a17a9a03 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
0ffbd08820 Update CHANGELOG.md 2021-11-30 09:47:42 +08:00
Sunli
2962902564 Update README 2021-11-30 09:46:18 +08:00
lfn3
7aea053240 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
4a265ed29d #[grapql(validator(list))] no longer applies to max_items and min_items. 2021-11-30 09:40:02 +08:00
Sunli
05907cad31 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
25b10deded add missing impls serde_json::Value
Fixes #728
2021-11-29 15:14:27 +01:00
Bastien Orivel
6e6b006580 Update darling to 0.13 and bump version 2021-11-29 11:11:32 +01:00
Sunli
e06fc84b6b Update examples 2021-11-25 16:31:06 +08:00
Sunli
ee29386a33 Merge pull request #721 from jly36963/fix-environment-spelling
docs: environment spelling
2021-11-24 07:36:26 +08:00
Landon Yarrington
c7e4941986 docs: environment spelling 2021-11-23 13:48:51 -07:00
Sunli
d8d8d59ec9 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
4d0fdd9e0f Fix error extensions cause stack overflow #719 2021-11-23 09:02:52 +08:00
Sunli
cae0fe3f02 Update CHANGELOG.md 2021-11-21 12:37:31 +08:00
Sunli
db83b9440c Update docs 2021-11-20 11:16:48 +08:00
Sunli
296eba3847 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
1b50738af7 Custom directive 2021-11-20 09:04:46 +08:00
Sunli
3f458dcb31 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
5c5e5c907c Update CHANGELOG.md 2021-11-19 08:35:03 +08:00
Sunli
ff64396fc8 Update book 2021-11-19 08:29:45 +08:00
Sunli
892e8189a0 bump actix-web from 4.0.0-beta.10 to 4.0.0-beta.11 2021-11-19 08:18:21 +08:00
Sunli
27deae8476 Add tide integration 2021-11-19 08:10:47 +08:00
Sunli
b653a6eb20 Update CHANGELOG.md 2021-11-18 20:17:05 +08:00
Sunli
e2c6ead1a3 Add DirectivesUnique rule 2021-11-18 20:14:56 +08:00
Sunli
eb9cda4c80 Remove skipped fields from the document before executing the query. 2021-11-18 19:37:10 +08:00
Sunli
e2ef677519 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
559bbedd3e 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
3616ca8fec 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
bd621f70c1 Make GraphQLWebSocket::new use generic stream.
Add `GraphQLWebSocket::new_with_pair` method.
2021-11-18 09:25:32 +08:00
Sunli
8243921fa4 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
502bfb8670 Add url, regex and ip validators. 2021-11-17 11:12:52 +08:00