Commit Graph

410 Commits

Author SHA1 Message Date
sunli
8299a54456 Improve GraphQL query parser performance. #76 2020-05-12 16:27:06 +08:00
Nicolai Unrein
1726c64e7a Add From<serde_json::Value> for Json 2020-05-11 17:55:54 +02:00
sunli
2d1eb41598 Merge branch 'upload-stream' 2020-05-11 21:47:58 +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
Nicolai Unrein
8d9bb7d810 Add documentation for error_extensions 2020-05-11 14:25:54 +02:00
Sunli
0e371afb3c It not finished yet. 2020-05-11 17:13:50 +08:00
Sunli
a78809301d Update docs 2020-05-11 14:35:12 +08: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
Sunli
3609eedcd2 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
475754d9d9 Update the books 2020-05-10 21:39:43 -07: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
Blaine Bublitz
9ee269c512 Change interfaces to require enums 2020-05-10 20:03:13 -07:00
Sunli
3fcf41470b fix typo 2020-05-11 10:39:08 +08:00
sunli
12c1f9bb9b Upgrade async-trait to 0.1.30. #73 2020-05-11 09:10:57 +08:00
sunli
2761224335 v1.11.3 2020-05-10 23:02:33 +08:00
Samuel Hurel
8a5809e7df 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
05cac5854f impl From<ID> for Cursor 2020-05-10 16:25:16 +02:00
sunli
2f25c96955 v1.11.2 2020-05-10 22:13:58 +08:00
Samuel Hurel
c06f871b41 Prefer TryFrom to TryInto for ID 2020-05-10 16:13:41 +02:00
Sunli
94663e1a10 Merge pull request #71 from IcanDivideBy0/cursor_from_display
Simplify ID and Cursor conversion
2020-05-10 22:09:09 +08:00
Samuel Hurel
34f286b2d9 Remove useless as_str on ID 2020-05-10 15:58:56 +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
08cf3c5969 v1.11.1 2020-05-10 18:42:57 +08: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
212c573827 async-graphql-parser v0.2.0 2020-05-10 13:54:57 +08:00
Sunli
106622c9b9 Merge pull request #67 from DataCorrupted/master
slightly modified based on Sunli's reply.
2020-05-10 13:53:26 +08:00
Peter Rong
318be22c79 slightly modified based on Sunli's reply.
Signed-off-by: Peter Rong <PeterRong96@gmail.com>
2020-05-09 22:48:41 -07:00
sunli
2f98b09b6b Update args.rs 2020-05-10 13:23:34 +08:00
sunli
f7cbce0d75 v1.11.0 2020-05-10 13:09:57 +08:00
sunli
2755f4f9a9 Use rustdoc comments as graphql desc. #62 2020-05-10 12:41:05 +08:00
sunli
2e3df8ff43 Remove async-graphql-derive dependency on graphql-parser. 2020-05-10 11:12:07 +08:00
sunli
bc2966bc0d Improve parser performance. 2020-05-10 10:59:51 +08:00
sunli
d343c0c2f6 Update docs 2020-05-10 09:41:13 +08:00
sunli
72ec6cc3bc Update apollo_tracing.md 2020-05-10 09:03:21 +08:00
Sunli
9902b3c339 Merge pull request #64 from DataCorrupted/master
Translate type system almost done with some TODO.
2020-05-10 08:56:50 +08:00
Sunli
064354fbb7 Merge pull request #65 from Ejhfast/book-english-translation
Ongoing english translations
2020-05-10 08:56:11 +08:00
Ethan Fast
015e7ff6b5 translate section 7 (advanced topics) 2020-05-09 15:37:31 -07:00
Peter Rong
7591ef81bc resolved typo.
Signed-off-by: Peter Rong <PeterRong96@gmail.com>
2020-05-09 15:01:25 -07:00
Ethan Fast
ddceb05e69 translate section 6 (integrations) 2020-05-09 14:56:45 -07:00
Ethan Fast
5e7a7f0df1 translate section 5 (extensions) 2020-05-09 14:39:04 -07:00
Ethan Fast
d0b4e4db87 translate section 4 (schema) 2020-05-09 13:56:15 -07:00
Peter Rong
4ce0dc23b9 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
0d540465a5 Remove the disgusting functions json_value_to_gql_value and gql_value_to_json_value.😂 2020-05-09 22:16:39 +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