Commit Graph

343 Commits

Author SHA1 Message Date
Koxiaet
e3e58d261d Rewrite async-graphql-parser 2020-09-06 06:38:31 +01:00
Sunli
d04b5b675f Fix the test code and add docs. 2020-09-01 09:10:12 +08:00
Koxiaet
945cd72869 Remove dependency on serde_derive, satisfy Clippy, improve docs 2020-08-31 19:18:02 +01:00
Sunli
b3f6e724bf Add DateTime<Local> scalar.
Fixed compile problem with `v1.48-nightly`.
2020-08-31 16:12:12 +08:00
Sunli
56550bac23 Clippy clean 2020-08-31 15:40:44 +08:00
Sunli
ea379141a6 Cargo fmt --all 2020-08-31 15:35:53 +08:00
D1plo1d
895b075c77 Added async_graphql::graphql tracing namespace 2020-08-30 21:11:43 -04:00
D1plo1d
895dbfae7c Refactored tracing extension to allow better span and event filtering and improve signal to noise 2020-08-30 21:01:53 -04:00
D1plo1d
05b2473b52 Added Default to tracing extension 2020-08-30 16:32:14 -04:00
Renat Sadykov
83261cef2a
Add the DateTime<FixedOffset> scalar 2020-08-29 23:18:57 +03:00
Sunli
80b2ff00c5 Implements Default for Schema. 2020-08-28 14:19:35 +08:00
Sunli
7fef4e3dca Merge subscriptions #243 2020-08-27 15:35:48 +08:00
Sunli
2e5c256de9 Rename SubscriptionTransport to ConnectionTransport. #240 2020-08-15 08:47:45 +08:00
Sunli
e596a27e05 Add scalar type for NaiveDateTime. #237 2020-08-14 15:28:42 +08:00
Sunli
fe336dd4d0 Fix send data with 'complete' WebSocket message. #238 2020-08-14 15:21:10 +08:00
Sunli
e8eac139b5 Update docs 2020-08-10 14:57:45 +08:00
Sunli
d280a13b70 Add derive macro GQLMergeObject. #231 2020-08-10 14:11:46 +08:00
Sunli
d7248e149f Add Default impl for MergedObject. #231 2020-08-10 10:47:30 +08:00
Sunli
dd7c64fc7a Add MergedObject type. #231 2020-08-09 15:03:10 +08:00
Midas Lambrichts
ac9996e458 3% speedup in chat run by allocating vector up front 2020-08-08 13:36:14 +02:00
Sunli
a193a8e51a Add directive @ifdef 2020-08-06 14:52:54 +08:00
Sunli
b67278eeec Add support for query execution over websocket. 2020-07-31 11:30:57 +08:00
Sunli
3d7594bac1 Removes code about streaming requests. 2020-07-31 10:10:03 +08:00
Sunli
c22ff21b96 InputValueValidator::is_valid function now returns the Result type. #221 2020-07-30 09:43:51 +08:00
Sunli
72aaf288a5 Export serde_json::Number as async_graphql::Number. 2020-07-30 09:30:57 +08:00
Sunli
3395c00603 Replace Value::Int and Value::Float with Value::Number. 2020-07-29 09:42:52 +08:00
Sunli
b8a887457d Use log crate instead of xlog because xlog still needs to be perfected. #217 2020-07-24 16:55:46 +08:00
Sunli
fcf9477fc2 Fix Federation schema throws error while using multiple Option inputs #211 2020-07-17 10:14:40 +08:00
Sunli
c7c4de94ed Replace log crate with xlog. 2020-07-15 18:05:24 +08:00
Sunli
8992b681dc Fix input validator is ignored when using variable #207 2020-07-11 10:05:30 +08:00
Sunli
1da351a059
Merge pull request #206 from D1plo1d/patch-1
Add Serialize and Deserialize to ID
2020-07-08 15:10:01 +08:00
Sunli
9510160432 Add OutputJson type #203 2020-07-08 14:44:57 +08:00
Rob Gilson
aab0bb157c
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
5a5257afef Document default values 2020-07-07 09:41:29 +01:00
Blaine Bublitz
6ed3909a9a Use FieldResult for data(), add data_unchecked() for panic 2020-07-06 17:39:53 -07:00
Sunli
c8409e1a00 Remove ref attribute for SimpleObject fields, and add owned attribute. 2020-06-23 14:42:57 +08:00
Sunli
6172887612 Fix typo 2020-06-22 15:59:53 +08:00
Sunli
94e0971827 Update datetime.rs 2020-06-16 23:21:05 +08:00
Jake Thompson
0a0fc03e8c
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
cda4498979 Remove all datasource-related code and update the documentation. 2020-06-15 14:17:19 +08:00
Sunli
c05127bb3e Remove connection::DataSource 2020-06-15 12:06:15 +08:00
Sunli
c0f62cbf03 Update integers.rs 2020-06-15 09:26:43 +08:00
Midas Lambrichts
fb4b5f470b Added u32 as ScalarType 2020-06-14 22:13:45 +02:00
Sunli
09a6eb4944 Extension::Logger now provides more comprehensive error information. 2020-06-13 22:14:47 +08:00
Sunli
8ea34e8bcf Add Querybuilder::query_source function. #174 2020-06-13 09:09:44 +08:00
Sunli
c82a729392 Fix typo 2020-06-12 09:55:20 +08:00
Bryan Burgers
81c7683e4d 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
538b7e0646 Add GQLInterface and GQLUnion 2020-06-11 15:08:51 +08:00
Sunli
9281fcbb5a Merge branch 'master' of github.com:async-graphql/async-graphql 2020-06-11 11:23:34 +08:00
Sunli
b605846822 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