Commit Graph

48 Commits

Author SHA1 Message Date
Caio
ac2fe8583c Impl Scalar for NaiveDate and NaiveTime 2020-05-15 08:51:54 -03:00
Sunli
9184c999ae Modify some type names (internal types) 2020-05-15 10:08:37 +08:00
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
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
Samuel Hurel
0344b0b996 Prefer TryFrom to TryInto for ID 2020-05-10 16:13:41 +02: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
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
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
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
08539d8151 Update json.rs 2020-05-08 10:40:29 +08:00
sunli
7a025d2185 Clippy cleanup 2020-05-07 20:44:24 +08:00
sunli
a43d834a94 Add Json scalar type. #56 2020-05-07 20:41:00 +08:00
sunli
e9c9dfbc27 Update any.rs 2020-05-07 18:50:47 +08:00
sunli
fee228b020 Add Any::parse_value method. #56 2020-05-07 18:49:09 +08:00
Samuel Hurel
2288138d5b Add ObjectId to ID type conversion 2020-05-07 08:42:34 +02:00
sunli
74ce2171b8 Add uuid::Uuid, usize to ID type conversion. #54 2020-05-07 11:15:04 +08:00
sunli
d7e3afc822 Change the first parameter of OutputValueType::resolve to be &self 2020-05-05 21:06:48 +08:00
Nicolai Unrein
26120e24e2 Allow conversion to Any for all types that can be converted to Value. 2020-04-29 12:49:51 +02:00
sunli
0c541c010d Replace the impl_scalar macro with the procedural macro Scalar 2020-04-27 17:58:10 +08:00
Samuel Hurel
e1d66d31ca Add bson::UtcDateTime support 2020-04-24 19:12:07 +02:00
sunli
c233192545 The int64 scalar serializes to a string 2020-04-19 10:17:47 +08:00
sunli
b880a937ce Add GQLHttpRequest and IntoQueryBuilder trait 2020-04-11 17:36:05 +08:00
sunli
c6dfe06ef9 Add federation example 2020-04-10 10:20:43 +08:00
sunli
f1d0b3f641 Add federation support 2020-04-09 22:03:09 +08:00
sunli
10105b8a09 Reimplement the error type and remove the dependency on the anyhow::Error 2020-04-02 10:21:04 +08:00
sunli
2ee7ba4de9 Add chrono_tz scalar 2020-03-27 09:03:30 +08:00
sunli
50347bc415 v1.6.0 2020-03-26 11:34:28 +08:00
sunli
41fd8ed40e v1.5.1 2020-03-25 11:39:28 +08:00
sunli
2fc056ad39 v1.5.0
Improve performance
2020-03-24 18:54:22 +08:00
sunli
2b2be34d4d Clippy cleanup 2020-03-21 09:32:13 +08:00
iancormac84
a8a0984bf5 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
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
482c5b3cf3 v0.10.4 2020-03-09 18:05:52 +08:00
sunli
53dcd0aae5 add some validation code 2020-03-08 20:35:36 +08:00
sunli
70322b9a37 implemented interface 2020-03-06 23:58:43 +08:00
sunli
2351e75f2c fix some bug
add starwars example
2020-03-05 21:34:31 +08:00
sunli
e9cc5969f2 Rewrite the object generation code 2020-03-05 14:23:55 +08:00
sunli
92a95dbbf4 implemented directive (@include, @skip) 2020-03-04 14:24:44 +08:00
sunli
b7a65b6784 support variables 2020-03-04 11:51:42 +08:00
sunli
602f6a656f Support default values 2020-03-04 10:38:07 +08:00
sunli
d0c6db0aba add schema support 2020-03-03 19:15:18 +08:00
sunli
8f448c91e9 create type info 2020-03-03 11:48:49 +08:00
sunli
332faa70fa query root 2020-03-03 11:48:43 +08:00