Blaine Bublitz
0fde868459
Fix issue with unwrapping derive attributes
2020-06-25 13:54:13 -07:00
Sunli
eb7a72aac6
Remove ref
attribute for SimpleObject fields, and add owned
attribute.
2020-06-23 14:42:57 +08: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
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
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
Sunli
edec696610
Add tests for feature attribute
2020-06-06 11:49:29 +08:00
Sunli
96f7d38c8a
Update PostGuard tests
2020-06-03 16:56:15 +08:00
Sunli
746544412b
Add PostGuard. #129
2020-06-03 14:50:06 +08:00
Sunli
2452a44484
Add connection::query function
2020-06-02 17:43:13 +08:00
Kevin Schoonover
9b114cf616
Add input validator tests + fix clippy errors
2020-06-01 16:42:13 -05:00
Sunli
267620d08e
Fix incorrect variable substitution. #126
2020-05-31 11:54:07 +08:00
Sunli
9a97ac443f
Update connection tests
2020-05-29 11:12:43 +08:00
Sunli
6cc92458e1
Add Connection::try_append and Connection::try_append_stream
2020-05-29 09:24:31 +08:00
Sunli
43c8daa132
Add MaybeUndefined type ( #123 )
...
* Add MaybeUndefined type
2020-05-28 15:00:55 +08:00
Sunli
0c15370bcd
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
76ff909ccd
New data source ( #105 )
...
* New data source
2020-05-28 08:02:00 +08:00
Sunli
41cba4d6fb
Fixed a bug in fragment query. #114
2020-05-27 15:23:53 +08:00
Sunli
5e18c69dd6
Update input_validators.rs
2020-05-27 10:25:59 +08:00
Sunli
b16fc7b9b9
Add the method parameter to the interface field. #112
2020-05-27 10:25:23 +08:00
Sunli
451f0c27f0
Compilation trouble with StringMinLength validator. #113
2020-05-27 09:42:58 +08:00
Sunli
bb97e86410
Add some tests for default value
2020-05-27 09:27:59 +08:00
Sunli
a9d3ac9cf8
Implement a type-safe default value definition for InputValue. #111
2020-05-26 20:43:53 +08:00
Samuel Hurel
f9249e403f
Add proper count for Stream DataSource impl
2020-05-21 14:02:21 +02:00
Samuel Hurel
d58fd6e942
Remove StreamDataSource wrapper
2020-05-21 13:10:36 +02:00
Samuel Hurel
1f4b732615
Fix tests & impl From<Stream> for StreamDataSource
2020-05-21 10:22:36 +02:00
Samuel Hurel
3aac2160e0
Remove StreamDataSource mapping closure
2020-05-21 09:55:49 +02:00
Samuel Hurel
02de780921
Stream connection
2020-05-21 09:40:42 +02:00
Sunli
bcd39f4df8
Remove Clone bound for Deferred and Streamed
2020-05-21 15:38:26 +08:00
Sunli
24af597f30
Add StreamResponse type
2020-05-21 11:36:44 +08:00
Sunli
326fac2799
Add @stream directive
2020-05-21 10:12:54 +08:00
sunli
374023748d
Add @defer support for actix-web
2020-05-20 20:10:40 +08:00
sunli
6f924efcf4
Add defer tests
2020-05-20 13:42:55 +08:00
Sunli
75bfba057a
Add Deferred type and @defer directive. #51
2020-05-19 20:53:29 +08:00
Sunli
d00e3e8c25
The scalar name and description attributes are placed on the process macro attributes. #97
2020-05-19 13:27:01 +08:00
Sunli
85c54762bf
Sort __Schema.types and __Schema.directives by name. #93
2020-05-18 11:37:05 +08:00
Sunli
26e737014e
Support multiple lines of rustdoc as a type description.
2020-05-18 10:09:09 +08:00
krevativ
873f6d3d11
Format introspection tests
2020-05-17 20:59:21 +02:00
krevativ
b12fed4b56
Delete old test_introspection.rs file
2020-05-17 20:57:55 +02:00
krevativ
ee32ea5455
Add introspection tests
2020-05-17 20:55:40 +02:00
Sunli
693ffda56a
Merge pull request #75 from phated/interface-enums
...
Change interfaces & unions to require enums
2020-05-11 13:44:19 +08:00
Blaine Bublitz
b7bc7fea12
Change Unions to enums instead of structs
2020-05-10 21:27:30 -07:00
Sunli
8a84455b0a
Create a boilerplate test code for introspection. #66
2020-05-11 12:24:16 +08:00
Blaine Bublitz
6f70924967
Fix tests
2020-05-10 20:25:49 -07:00
sunli
728989209f
The error reason can be returned when the input value is parsed incorrectly. #70
2020-05-10 18:27:46 +08:00
sunli
7f7e708614
Move the parser to async-graphql-parser crate.
2020-05-09 22:02:55 +08:00
sunli
f24c6fceff
Add ability to forward field arguments to guard #59
2020-05-09 18:34:57 +08:00
sunli
dc7c8d5280
Merge branch 'parser'
...
Implement a new GraphQL query parser and remove the dependency on graphql-parser.
2020-05-09 17:55:04 +08:00
sunli
d7ea05ab14
Add tests to limit complexity and depth.
2020-05-05 13:46:56 +08:00
sunli
9b917e19b3
Modify the location of the Guard call.
2020-05-05 13:02:24 +08:00