Commit Graph

410 Commits

Author SHA1 Message Date
sunli
01b2ce8e18 Improve GraphQL query parser performance. #76 2020-05-12 16:27:06 +08:00
Nicolai Unrein
aa83cab31b Add From<serde_json::Value> for Json 2020-05-11 17:55:54 +02:00
sunli
a8c7e571e4 Merge branch 'upload-stream' 2020-05-11 21:47:58 +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
Nicolai Unrein
fd9a7553ae Add documentation for error_extensions 2020-05-11 14:25:54 +02:00
Sunli
b521e6c64d It not finished yet. 2020-05-11 17:13:50 +08:00
Sunli
1499b67a78 Update docs 2020-05-11 14:35:12 +08:00
Sunli
a1c8dedd56
Merge pull request #75 from phated/interface-enums
Change interfaces & unions to require enums
2020-05-11 13:44:19 +08:00
Sunli
132811cb91 DataSource and Scalar macros no longer hide errors. #73
I still haven't figured out why this problem was caused, but I solved it in a way that seemed silly together.
2020-05-11 13:31:13 +08:00
Blaine Bublitz
d19ab4c559 Update the books 2020-05-10 21:39:43 -07:00
Blaine Bublitz
548447cdec Change Unions to enums instead of structs 2020-05-10 21:27:30 -07:00
Sunli
c101433b7c Create a boilerplate test code for introspection. #66 2020-05-11 12:24:16 +08:00
Blaine Bublitz
9483ff14be Fix tests 2020-05-10 20:25:49 -07:00
Blaine Bublitz
14e3b4fe69 Change interfaces to require enums 2020-05-10 20:03:13 -07:00
Sunli
f15fa9dbdf fix typo 2020-05-11 10:39:08 +08:00
sunli
14d196feca Upgrade async-trait to 0.1.30. #73 2020-05-11 09:10:57 +08:00
sunli
0bd5e14ee9 v1.11.3 2020-05-10 23:02:33 +08:00
Samuel Hurel
155a065877
Merge pull request #72 from IcanDivideBy0/more_conversion_goodies
Prefer TryFrom to TryInto for ID
2020-05-10 16:44:13 +02:00
Samuel Hurel
9993e86427 impl From<ID> for Cursor 2020-05-10 16:25:16 +02:00
sunli
925f8d6828 v1.11.2 2020-05-10 22:13:58 +08:00
Samuel Hurel
0344b0b996 Prefer TryFrom to TryInto for ID 2020-05-10 16:13:41 +02:00
Sunli
e3542a1360
Merge pull request #71 from IcanDivideBy0/cursor_from_display
Simplify ID and Cursor conversion
2020-05-10 22:09:09 +08:00
Samuel Hurel
327f59e2a9 Remove useless as_str on ID 2020-05-10 15:58:56 +02:00
Samuel Hurel
b2176fe6b0 Simplify ID conversion 2020-05-10 15:52:47 +02:00
Samuel Hurel
690f2b46c5 Simplify cursor conversion 2020-05-10 14:49:52 +02:00
sunli
841e822359 v1.11.1 2020-05-10 18:42:57 +08:00
sunli
4a68ac3786 Add ToGraphQLCursor and ToGraphQLID traits. #54 2020-05-10 18:39:53 +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
2267e961bf async-graphql-parser v0.2.0 2020-05-10 13:54:57 +08:00
Sunli
93dedf1198
Merge pull request #67 from DataCorrupted/master
slightly modified based on Sunli's reply.
2020-05-10 13:53:26 +08:00
Peter Rong
17bd315727 slightly modified based on Sunli's reply.
Signed-off-by: Peter Rong <PeterRong96@gmail.com>
2020-05-09 22:48:41 -07:00
sunli
dc963250e7 Update args.rs 2020-05-10 13:23:34 +08:00
sunli
f64b117859 v1.11.0 2020-05-10 13:09:57 +08:00
sunli
85156b69a8 Use rustdoc comments as graphql desc. #62 2020-05-10 12:41:05 +08:00
sunli
52170b6da3 Remove async-graphql-derive dependency on graphql-parser. 2020-05-10 11:12:07 +08:00
sunli
f7d308be8a Improve parser performance. 2020-05-10 10:59:51 +08:00
sunli
357a0b4cad Update docs 2020-05-10 09:41:13 +08:00
sunli
6874b8138c Update apollo_tracing.md 2020-05-10 09:03:21 +08:00
Sunli
0d3df4ad0f
Merge pull request #64 from DataCorrupted/master
Translate type system almost done with some TODO.
2020-05-10 08:56:50 +08:00
Sunli
87c856cc07
Merge pull request #65 from Ejhfast/book-english-translation
Ongoing english translations
2020-05-10 08:56:11 +08:00
Ethan Fast
cc17c32721 translate section 7 (advanced topics) 2020-05-09 15:37:31 -07:00
Peter Rong
f5ce459e51 resolved typo.
Signed-off-by: Peter Rong <PeterRong96@gmail.com>
2020-05-09 15:01:25 -07:00
Ethan Fast
625a3ddb5a translate section 6 (integrations) 2020-05-09 14:56:45 -07:00
Ethan Fast
774cde91aa translate section 5 (extensions) 2020-05-09 14:39:04 -07:00
Ethan Fast
ab9cefb349 translate section 4 (schema) 2020-05-09 13:56:15 -07:00
Peter Rong
b5c8e80151 Translate type system almost done with some TODO.
Signed-off-by: Peter Rong <PeterRong96@gmail.com>
2020-05-09 10:53:41 -07:00
sunli
917783038a Remove the disgusting functions json_value_to_gql_value and gql_value_to_json_value.😂 2020-05-09 22:16:39 +08:00
sunli
da26857379 Move the parser to async-graphql-parser crate. 2020-05-09 22:02:55 +08:00
sunli
36967ffa4f Add ability to forward field arguments to guard #59 2020-05-09 18:34:57 +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