Commit Graph

61 Commits

Author SHA1 Message Date
Sunli
3cdf109bfd Update integers.rs 2020-05-28 11:25:03 +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
0ebf7d4087 Update mod.rs 2020-05-28 08:07:29 +08:00
Sunli
76ff909ccd New data source (#105)
* New data source
2020-05-28 08:02:00 +08:00
Sunli
a9d3ac9cf8 Implement a type-safe default value definition for InputValue. #111 2020-05-26 20:43:53 +08:00
Sunli
4ae76b505f Remove the wrong feature condition. 2020-05-26 11:57:26 +08:00
William Myers
3486981284 Derive Serialize & Deserialize for Json 2020-05-25 15:34:43 -06:00
Sunli
19803ccc61 Fix the problem of compilation failure. 2020-05-22 13:38:46 +08:00
sunli
6f924efcf4 Add defer tests 2020-05-20 13:42:55 +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
Caio
8c14c6c675 Rustfmt 2020-05-16 13:12:37 -03:00
Caio
27e5c94731 Fix compilation errors 2020-05-16 13:08:03 -03:00
sunli
c16d239b65 Remove some unsafe code 2020-05-16 21:14:26 +08:00
Caio
ae85517976 Impl Scalar for NaiveDate and NaiveTime 2020-05-15 08:51:54 -03: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
Nicolai Unrein
1726c64e7a Add From<serde_json::Value> for Json 2020-05-11 17:55:54 +02: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
Samuel Hurel
c06f871b41 Prefer TryFrom to TryInto for ID 2020-05-10 16:13:41 +02: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
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
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
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
f63c923521 Update json.rs 2020-05-08 10:40:29 +08:00
sunli
60e94890d0 Clippy cleanup 2020-05-07 20:44:24 +08:00
sunli
e6e1755502 Add Json scalar type. #56 2020-05-07 20:41:00 +08:00
sunli
2ec948fdf5 Update any.rs 2020-05-07 18:50:47 +08:00
sunli
c1e0b8f4a7 Add Any::parse_value method. #56 2020-05-07 18:49:09 +08:00
Samuel Hurel
12ced257a6 Add ObjectId to ID type conversion 2020-05-07 08:42:34 +02:00
sunli
539c75ee89 Add uuid::Uuid, usize to ID type conversion. #54 2020-05-07 11:15:04 +08:00
sunli
35531b65f8 Change the first parameter of OutputValueType::resolve to be &self 2020-05-05 21:06:48 +08:00
Nicolai Unrein
511be1e84d Allow conversion to Any for all types that can be converted to Value. 2020-04-29 12:49:51 +02:00
sunli
61583f54a3 Replace the impl_scalar macro with the procedural macro Scalar 2020-04-27 17:58:10 +08:00
Samuel Hurel
6996fae099 Add bson::UtcDateTime support 2020-04-24 19:12:07 +02:00
sunli
0b9d5ee071 The int64 scalar serializes to a string 2020-04-19 10:17:47 +08:00
sunli
0b6bfd4c33 Add GQLHttpRequest and IntoQueryBuilder trait 2020-04-11 17:36:05 +08:00
sunli
36360bcd4d Add federation example 2020-04-10 10:20:43 +08:00
sunli
86bdb422b1 Add federation support 2020-04-09 22:03:09 +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
dd6af84902 Add chrono_tz scalar 2020-03-27 09:03:30 +08:00
sunli
bc0d6603c1 v1.6.0 2020-03-26 11:34:28 +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
99f4184f83 Clippy cleanup 2020-03-21 09:32:13 +08:00
iancormac84
e0d6617129 Add support for bson crate's ObjectId as a Scalar, so that GraphQL integration with MongoDB become's possible. 2020-03-20 14:03:41 -04:00
sunli
62b4908ffe v1.3.2 2020-03-20 11:56:08 +08:00
sunli
724cb21258 add GraphQL Cursor Connections 2020-03-19 17:20:12 +08:00
sunli
60b0282a89 Support subscription 2020-03-17 17:26:59 +08:00