Commit Graph

340 Commits

Author SHA1 Message Date
Sunli
40d19f2f58 Add DateTime<Local> scalar.
Fixed compile problem with `v1.48-nightly`.
2020-08-31 16:12:12 +08:00
Sunli
0c4f8e5c16 Clippy clean 2020-08-31 15:40:44 +08:00
Sunli
78d3885a67 Cargo fmt --all 2020-08-31 15:35:53 +08:00
D1plo1d
7f7397650a Added async_graphql::graphql tracing namespace 2020-08-30 21:11:43 -04:00
D1plo1d
5a6c77ba9d Refactored tracing extension to allow better span and event filtering and improve signal to noise 2020-08-30 21:01:53 -04:00
D1plo1d
c675b929d3 Added Default to tracing extension 2020-08-30 16:32:14 -04:00
Renat Sadykov
7567a47498 Add the DateTime<FixedOffset> scalar 2020-08-29 23:18:57 +03:00
Sunli
6a38057a22 Implements Default for Schema. 2020-08-28 14:19:35 +08:00
Sunli
c35eecd90d Merge subscriptions #243 2020-08-27 15:35:48 +08:00
Sunli
8431c3a3d8 Rename SubscriptionTransport to ConnectionTransport. #240 2020-08-15 08:47:45 +08:00
Sunli
8c272127ea Add scalar type for NaiveDateTime. #237 2020-08-14 15:28:42 +08:00
Sunli
4e8bd65b34 Fix send data with 'complete' WebSocket message. #238 2020-08-14 15:21:10 +08:00
Sunli
6bf9718225 Update docs 2020-08-10 14:57:45 +08:00
Sunli
2a62c56104 Add derive macro GQLMergeObject. #231 2020-08-10 14:11:46 +08:00
Sunli
b0403f4e99 Add Default impl for MergedObject. #231 2020-08-10 10:47:30 +08:00
Sunli
4b6bb38e83 Add MergedObject type. #231 2020-08-09 15:03:10 +08:00
Midas Lambrichts
db904b623b 3% speedup in chat run by allocating vector up front 2020-08-08 13:36:14 +02:00
Sunli
47174966fb Add directive @ifdef 2020-08-06 14:52:54 +08:00
Sunli
aa3293b65c Add support for query execution over websocket. 2020-07-31 11:30:57 +08:00
Sunli
2cf350a5c8 Removes code about streaming requests. 2020-07-31 10:10:03 +08:00
Sunli
503339f504 InputValueValidator::is_valid function now returns the Result type. #221 2020-07-30 09:43:51 +08:00
Sunli
b7ad1ded91 Export serde_json::Number as async_graphql::Number. 2020-07-30 09:30:57 +08:00
Sunli
2dc61013be Replace Value::Int and Value::Float with Value::Number. 2020-07-29 09:42:52 +08:00
Sunli
a2aa731fe4 Use log crate instead of xlog because xlog still needs to be perfected. #217 2020-07-24 16:55:46 +08:00
Sunli
a18abab7b7 Fix Federation schema throws error while using multiple Option inputs #211 2020-07-17 10:14:40 +08:00
Sunli
4d3851e1b5 Replace log crate with xlog. 2020-07-15 18:05:24 +08:00
Sunli
909ae5e64d Fix input validator is ignored when using variable #207 2020-07-11 10:05:30 +08:00
Sunli
ea9e733a6e Merge pull request #206 from D1plo1d/patch-1
Add Serialize and Deserialize to ID
2020-07-08 15:10:01 +08:00
Sunli
2dde8b4aa6 Add OutputJson type #203 2020-07-08 14:44:57 +08:00
Rob Gilson
ff8fa50718 Add Serialize and Deserialize to ID
This should allow types containing IDs to be serialized (eg. for saving to a database).
2020-07-08 01:58:46 -04:00
Koxiaet
35c2401676 Document default values 2020-07-07 09:41:29 +01:00
Blaine Bublitz
c48f126fcd Use FieldResult for data(), add data_unchecked() for panic 2020-07-06 17:39:53 -07:00
Sunli
eb7a72aac6 Remove ref attribute for SimpleObject fields, and add owned attribute. 2020-06-23 14:42:57 +08:00
Sunli
ad4013d034 Fix typo 2020-06-22 15:59:53 +08:00
Sunli
643b540575 Update datetime.rs 2020-06-16 23:21:05 +08:00
Jake Thompson
3329cb37ea Update parsing to support more formats, this includes the JS standard format that is not compatible with the %+ time format 2020-06-16 01:46:20 +00:00
Sunli
665b337bf2 Remove all datasource-related code and update the documentation. 2020-06-15 14:17:19 +08:00
Sunli
1b8de3b433 Remove connection::DataSource 2020-06-15 12:06:15 +08:00
Sunli
5dfc12469a Update integers.rs 2020-06-15 09:26:43 +08:00
Midas Lambrichts
11d7a8cbdb Added u32 as ScalarType 2020-06-14 22:13:45 +02:00
Sunli
7630fe1f51 Extension::Logger now provides more comprehensive error information. 2020-06-13 22:14:47 +08:00
Sunli
0fe1067866 Add Querybuilder::query_source function. #174 2020-06-13 09:09:44 +08:00
Sunli
bbb58701af Fix typo 2020-06-12 09:55:20 +08:00
Bryan Burgers
e21f2e6316 Allow vars to be missing when def is nullable
Allow variables to be missing when the associated variable definition is
nullable (in which case we use `null` as the default).

This fixes queries like

```graphql
query Test($var: Int) {
    test(var: $var)
}
```

```json
{}
```

which appear to be allowed according to the GraphQL spec.
2020-06-11 10:00:47 -05:00
Sunli
6f7a3ea0e4 Add GQLInterface and GQLUnion 2020-06-11 15:08:51 +08:00
Sunli
a58d2d71ab Merge branch 'master' of github.com:async-graphql/async-graphql 2020-06-11 11:23:34 +08:00
Sunli
82eefd67fd Add GQLEnum, GQLInputObject, GQLSimpleObject macros. #164
use `proc_macro_derive` to solve the problem that Enum, InputObject, and SimpleObject do not support the #cfg attribute.
2020-06-11 11:23:23 +08:00
Coenen Benjamin
a1e5543f9c Update name of scalar DateTime to DateTimeUtc (#166)
* Update name of scalar DateTime to DateTimeUtc
2020-06-09 21:18:23 +08:00
Sunli
7b09aaf70b Fix slice support #165 2020-06-09 18:45:22 +08:00
William Myers
422337fd1e Add docs about into_read being blocking
Addresses #151
2020-06-07 20:44:01 -06:00