Commit Graph

113 Commits

Author SHA1 Message Date
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
01e3e85684 Add support for mut field args. 2020-08-17 21:48:53 +08:00
Sunli
fe336dd4d0 Fix send data with 'complete' WebSocket message. #238 2020-08-14 15:21:10 +08:00
Sunli
db8eef875c Update test for MergedObject. 2020-08-11 09:37:33 +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
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
3395c00603 Replace Value::Int and Value::Float with Value::Number. 2020-07-29 09:42:52 +08:00
Sunli
8992b681dc Fix input validator is ignored when using variable #207 2020-07-11 10:05:30 +08:00
Sunli
9510160432 Add OutputJson type #203 2020-07-08 14:44:57 +08:00
Blaine Bublitz
6ed3909a9a Use FieldResult for data(), add data_unchecked() for panic 2020-07-06 17:39:53 -07:00
Sunli
98e431fed0 Correct handling of raw identifiers #195 2020-07-02 10:25:20 +08:00
Blaine Bublitz
1c861ee80b Fix issue with unwrapping derive attributes 2020-06-25 13:54:13 -07:00
Sunli
c8409e1a00 Remove ref attribute for SimpleObject fields, and add owned attribute. 2020-06-23 14:42:57 +08: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
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
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
Sunli
f59d9f080f Add tests for feature attribute 2020-06-06 11:49:29 +08:00
Sunli
73239b89be Update PostGuard tests 2020-06-03 16:56:15 +08:00
Sunli
cfd652576f Add PostGuard. #129 2020-06-03 14:50:06 +08:00
Sunli
27b622e8bc Add connection::query function 2020-06-02 17:43:13 +08:00
Kevin Schoonover
80ff792f1a Add input validator tests + fix clippy errors 2020-06-01 16:42:13 -05:00
Sunli
d932d30209 Fix incorrect variable substitution. #126 2020-05-31 11:54:07 +08:00
Sunli
778ff8d6e4 Update connection tests 2020-05-29 11:12:43 +08:00
Sunli
a336733616 Add Connection::try_append and Connection::try_append_stream 2020-05-29 09:24:31 +08:00
Sunli
18dacbdf17
Add MaybeUndefined type (#123)
* Add MaybeUndefined type
2020-05-28 15:00:55 +08:00
Sunli
dfe381b2e0 Fix the problem that async-graphql cannot be compiled and passed in rust nightly-2020-05-25. #122 2020-05-28 10:26:07 +08:00
Sunli
ada2597130
New data source (#105)
* New data source
2020-05-28 08:02:00 +08:00
Sunli
019580595c Fixed a bug in fragment query. #114 2020-05-27 15:23:53 +08:00
Sunli
d703e5e4e1 Update input_validators.rs 2020-05-27 10:25:59 +08:00
Sunli
ae8234200a Add the method parameter to the interface field. #112 2020-05-27 10:25:23 +08:00
Sunli
b1accc90e7 Compilation trouble with StringMinLength validator. #113 2020-05-27 09:42:58 +08:00
Sunli
42b6b0380f Add some tests for default value 2020-05-27 09:27:59 +08:00
Sunli
a92a619345 Implement a type-safe default value definition for InputValue. #111 2020-05-26 20:43:53 +08:00
Samuel Hurel
2150fd4c38 Add proper count for Stream DataSource impl 2020-05-21 14:02:21 +02:00
Samuel Hurel
dc26996b05 Remove StreamDataSource wrapper 2020-05-21 13:10:36 +02:00
Samuel Hurel
36c05dc5a7 Fix tests & impl From<Stream> for StreamDataSource 2020-05-21 10:22:36 +02:00
Samuel Hurel
2e3cea7b74 Remove StreamDataSource mapping closure 2020-05-21 09:55:49 +02:00
Samuel Hurel
cc5bfa8350 Stream connection 2020-05-21 09:40:42 +02:00
Sunli
906bcce932 Remove Clone bound for Deferred and Streamed 2020-05-21 15:38:26 +08:00
Sunli
01489e20a5 Add StreamResponse type 2020-05-21 11:36:44 +08:00
Sunli
4868cf242b Add @stream directive 2020-05-21 10:12:54 +08:00
sunli
a745667922 Add @defer support for actix-web 2020-05-20 20:10:40 +08:00
sunli
e949cb441c Add defer tests 2020-05-20 13:42:55 +08:00
Sunli
d300e27fa2 Add Deferred type and @defer directive. #51 2020-05-19 20:53:29 +08:00