Commit Graph

46 Commits

Author SHA1 Message Date
Koxiaet
0880be3e0b Move some validations to parser
This commit moves the single anonymous and duplicated operation name
validation rules into the parser, allowing for a nicer format to be
exposed by it. It also adds better error messages to the parser.
2020-09-22 19:59:48 +01:00
Koxiaet
3c04411780 Remove code duplication for batch requests 2020-09-17 19:43:03 +01:00
Sunli
dc77e7f262 Update docs 2020-09-17 09:03:36 +08:00
Koxiaet
f82322045e Document features 2020-09-15 19:32:13 +01:00
Koxiaet
a86c3a86b8 Remove and feature-gate dependencies 2020-09-14 19:38:41 +01:00
Sunli
7a90069cad Continue to refactor. 2020-09-10 16:39:43 +08:00
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
c7c4de94ed Replace log crate with xlog. 2020-07-15 18:05:24 +08:00
Kevin Schoonover
80ff792f1a Add input validator tests + fix clippy errors 2020-06-01 16:42:13 -05:00
sunli
e949cb441c Add defer tests 2020-05-20 13:42:55 +08:00
Sunli
6cda0644c6 Upgrade multer to 1.1.1 2020-05-18 09:32:55 +08:00
sunli
44b1eb4fb4 Replace multipart parser with multer. 2020-05-17 16:26:36 +08:00
sunli
83579077d9 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
6d7d64866b The error reason can be returned when the input value is parsed incorrectly. #70 2020-05-10 18:27:46 +08:00
sunli
da26857379 Move the parser to async-graphql-parser crate. 2020-05-09 22:02:55 +08:00
sunli
311859e12a 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
98864c6879 Add field guard 2020-05-02 07:57:34 +08:00
sunli
f11d52825b Update error.rs 2020-04-22 19:09:59 +08:00
sunli
6eb6c9cd9a Fix interface resolver bug 2020-04-22 14:59:14 +08:00
sunli
db32d2a071 v1.9.5 2020-04-21 12:13:14 +08:00
sunli
26046ce809 v1.9.0 2020-04-14 09:53:17 +08:00
sunli
b880a937ce Add GQLHttpRequest and IntoQueryBuilder trait 2020-04-11 17:36:05 +08:00
sunli
f1d0b3f641 Add federation support 2020-04-09 22:03:09 +08:00
sunli
9b9e5385cb Update error.rs 2020-04-02 14:40:00 +02:00
sunli
b3525356c9 Extract line and column from ParseError 2020-04-02 12:37:04 +08:00
sunli
10105b8a09 Reimplement the error type and remove the dependency on the anyhow::Error 2020-04-02 10:21:04 +08:00
Nicolai Unrein
2b7320d6c6 ExtendedError and ResultExt inital draft 2020-03-29 16:31:45 +02:00
sunli
457e30ea2f v1.5.2 2020-03-25 15:07:16 +08:00
sunli
2b2be34d4d Clippy cleanup 2020-03-21 09:32:13 +08:00
sunli
d95c0f23b8 v1.3.2 2020-03-20 11:56:08 +08:00
sunli
ac044d6d30 add GraphQL Cursor Connections 2020-03-19 17:20:12 +08:00
sunli
e6cfaf134e Support subscription 2020-03-17 17:26:59 +08:00
sunli
f78a172241 Add support for multipart request 2020-03-14 11:46:20 +08:00
sunli
53dcd0aae5 add some validation code 2020-03-08 20:35:36 +08:00
sunli
3f8a0229c2 Added support for inline fragment 2020-03-07 10:39:55 +08:00
sunli
70322b9a37 implemented interface 2020-03-06 23:58:43 +08:00
sunli
b3974737fc implemented query fragment 2020-03-05 15:50:57 +08:00
sunli
cc96dba8d8 add actix-web example 2020-03-05 08:39:56 +08:00
sunli
92a95dbbf4 implemented directive (@include, @skip) 2020-03-04 14:24:44 +08:00
sunli
d0c6db0aba add schema support 2020-03-03 19:15:18 +08:00
sunli
332faa70fa query root 2020-03-03 11:48:43 +08:00
sunli
781aabdff0 variables supported 2020-03-02 00:52:05 +08:00
sunli
b62abdcd83 add InputObject 2020-03-01 21:35:39 +08:00
sunli
5030a28361 init commit 2020-03-01 18:54:34 +08:00