Commit Graph

72 Commits

Author SHA1 Message Date
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
c16d239b65 Remove some unsafe code 2020-05-16 21:14:26 +08:00
sunli
10a8b71adb Preserve field order for introspection. #89 2020-05-16 10:05:48 +08:00
Sunli
f74652e61a Modify some type names (internal types) 2020-05-15 10:08:37 +08:00
sunli
8299a54456 Improve GraphQL query parser performance. #76 2020-05-12 16:27:06 +08:00
sunli
8e9aff105e Support Upload Stream #15
I think the previous implementation is not elegant enough, the `QueryBuilder::set_files_holder` function looks disgusting, so I refactored it.
By the way, the performance of parsing InputValue has been optimized, and unnecessary clones have been removed.
2020-05-11 21:47:24 +08:00
Sunli
0e371afb3c It not finished yet. 2020-05-11 17:13:50 +08:00
Samuel Hurel
05cac5854f impl From<ID> for Cursor 2020-05-10 16:25:16 +02:00
Samuel Hurel
c810764e7e Simplify ID conversion 2020-05-10 15:52:47 +02:00
Samuel Hurel
d3015e9814 Simplify cursor conversion 2020-05-10 14:49:52 +02:00
sunli
ff6f97d7df Add ToGraphQLCursor and ToGraphQLID traits. #54 2020-05-10 18:39:53 +08: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
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
Blaine Bublitz
c678dde4be Allow datasource to use context 2020-05-06 17:04:26 -07:00
sunli
64aee618fc Make PageInfo available from outside (#52) 2020-05-06 06:52:04 +08:00
sunli
35531b65f8 Change the first parameter of OutputValueType::resolve to be &self 2020-05-05 21:06:48 +08:00
Blaine Bublitz
e4101db924 Relay pagination algorithm 2020-05-05 00:22:01 -07:00
sunli
d7ea05ab14 Add tests to limit complexity and depth. 2020-05-05 13:46:56 +08:00
Blaine Bublitz
eaa50a52e0 Add Cursor scalar (#48)
* Add Cursor scalar
2020-05-05 13:21:45 +08:00
sunli
220cd1e775 Report subscription stream errors to the client. 2020-05-03 16:02:46 +08:00
sunli
3f49ebce0e Move project to async-graphql 2020-04-28 15:41:31 +08:00
sunli
4659da9c30 fix #33 2020-04-27 12:57:52 +08:00
sunli
a4b4e69ea7 Remove the redundant field parameter for OutputType::resolve_field. 2020-04-26 15:12:18 +08:00
sunli
70b8ecc311 Update connection_type.rs 2020-04-26 14:40:55 +08:00
sunli
88f6e468e7 Some minor changes 2020-04-26 12:34:08 +08:00
nicolaiunrein
248e29c40b Fix url linking from Upload to example. 2020-04-20 07:59:10 +02:00
sunli
4cf83e333b Add some docs
v1.9.2
2020-04-17 11:06:33 +08:00
sunli
a53e61abf9 v1.8.1 2020-04-11 17:40:29 +08:00
sunli
0b6bfd4c33 Add GQLHttpRequest and IntoQueryBuilder trait 2020-04-11 17:36:05 +08:00
sunli
86bdb422b1 Add federation support 2020-04-09 22:03:09 +08:00
sunli
5c710ff744 Add SimpleBroker 2020-04-07 14:30:46 +08:00
sunli
b88ac80084 The subscription field now returns a stream 2020-04-06 13:49:39 +08:00
sunli
185e1fb8e6 Add some test, modified from juniper 2020-04-05 16:00:26 +08:00
sunli
1b05724390 If the field name or parameter name is wrong, give suggestion 2020-04-03 13:57:24 +08:00
sunli
c60e4a51ab Fixed panic when uploading binary file 2020-04-03 09:27:22 +08:00
sunli
506e82895f Add Schema::execute 2020-04-02 12:53:53 +08:00
sunli
14860d9b88 Reimplement the error type and remove the dependency on the anyhow::Error 2020-04-02 10:21:04 +08:00
sunli
b373e1397d remove PreparedQuery 2020-04-01 16:53:49 +08:00
nicolaiunrein
3a3dfcc67e Update upload.rs 2020-03-30 16:47:17 +02:00
nicolaiunrein
4ec15b0749 Update upload.rs 2020-03-30 16:36:27 +02:00
nicolaiunrein
cea92039c5 Update upload.rs 2020-03-30 16:31:38 +02:00
Nicolai Unrein
441d163e93 add documentation to upload 2020-03-30 16:25:35 +02:00
sunli
bc0d6603c1 v1.6.0 2020-03-26 11:34:28 +08:00
sunli
bf7332378c v1.5.2 2020-03-25 15:07:16 +08:00
sunli
b0369860dd v1.5.1 2020-03-25 11:39:28 +08:00
sunli
0769513c8b v1.5.0
Improve performance
2020-03-24 18:54:22 +08:00
sunli
e6bb9b82ed Add CacheControl for object 2020-03-22 16:45:59 +08:00
sunli
788a3b558b v1.4.2 2020-03-22 09:34:32 +08:00
sunli
99f4184f83 Clippy cleanup 2020-03-21 09:32:13 +08:00