Commit Graph

221 Commits

Author SHA1 Message Date
Sunli
0f1e5a19fd If a GraphQL name conflict is detected when creating schema, it will cause panic. #499 2021-11-08 10:25:31 +08:00
Sunli
53b5701b93 Fix the problem that EmptyMutation may cause when used in MergedObject. #694 2021-11-08 08:45:14 +08:00
Sunli
c2a5ad1779 rustfmt 2021-11-05 09:29:50 +08:00
SadiinsoSnowfall
fef7820871 Fixed clippy warning 2021-11-04 14:05:36 +01:00
SadiinsoSnowfall
6a8d0260e0 Added map, contains and transpose function to MaybeUndefined 2021-11-04 12:03:49 +01:00
Sunli
755a7f92df rustfmt 2021-11-04 14:42:30 +08:00
Sunli
ad517eaddb Add MaybeUndefined::as_opt_ref and MaybeUndefined::as_opt_deref methods. #688 2021-11-04 09:44:16 +08:00
meh
f4c8222ef8
docs: add specified_by_url for Duration
Co-authored-by: Anthony Griffon <an.griffon@gmail.com>
2021-11-03 14:56:42 +01:00
meh
6aeacd9737
feat: add chrono::Duration custom scalar 2021-11-03 14:05:58 +01:00
Sunli
dc1bffcca4 Add specified_by_url for Upload 2021-11-02 20:35:43 +08:00
Sunli
bb0c4624a6 Add specified_by_url for Tz & DateTime<Tz> & Url & Uuid scalars 2021-11-02 20:35:05 +08:00
Sunli
3306f85a8a Subscription typename - [GraphQL - October 2021] #681 2021-11-02 20:35:05 +08:00
Sunli
91bb9e81fb Specified By - [GraphQL - October 2021] #677 2021-11-02 20:35:05 +08:00
Sunli
3964e5c36c
Merge branch 'master' into update-to-rust-edition-2021 2021-11-02 20:08:41 +08:00
Sunli
271946eb0c Respect query object field order. #612 2021-10-26 19:02:15 +08:00
Jeff Registre
2098842400
Removed import for new prelude members: TryFrom, TryInto, FromIterator 2021-10-22 19:34:49 -04:00
Samuel Hurel
0f997b651d Add Bson<->JSON and Document<->JSONObject impls 2021-10-19 10:24:41 +02:00
Sunli
44812eeb1f Implement Default for ID #659 2021-10-16 22:24:46 +08:00
Miaxos
bcb9981e56 misc: add documentations for naive_time url and uuid 2021-09-20 13:54:30 +00:00
Sunli
b590cea008 Implement ScalarType for HashMap/BTreeMap to use ToString/FromStr. #585 2021-09-17 09:17:47 +08:00
Diego Stratta
f6be0786a0 Implement From<MaybeUndefined<T>> for Option<Option<T>> 2021-08-13 19:24:04 -03:00
Sunli
1468cc91bb Implemented OutputType for Bytes. #569 2021-07-18 21:42:39 +08:00
Bram Hoendervangers
648515265b Add decimal scalar 2021-07-01 23:47:30 +02:00
Sunli
7cb30db2f2 Fix the bug that MergedObject may cause panic. #539 2021-06-21 09:48:19 +08:00
Sunli
f5e3329e86 Implement InputType and OutputType for [T; N] array. 2021-06-17 10:39:27 +08:00
Sunli
19669c11f0 Add serial attribute for MergedObject macro. #539 2021-06-16 15:08:33 +08:00
Sunli
2c1e31b8a4 Update merged_object.rs 2021-06-16 11:28:15 +08:00
Yin Jifeng
29593c6d45 feat: support bson v2.0.0-beta 2021-06-11 11:00:19 +08:00
Sunli
553bf37abe Rework error propagation. #531 2021-06-08 10:05:30 +08:00
Sunli
dfe8245894 Add support for returning multiple resolver errors. #531 2021-06-07 14:03:36 +08:00
Oliver Cooper
b6dcb02df8 Aligned NaiveDateTime formatting with DateTime
Fixes #526

Chrono uses `%Y-%m-%dT%H:%M:%S%.f%:z` for it's RCC3339 formatting implementation. See 3467172c31/src/format/mod.rs (L680)
2021-06-03 10:12:32 +12:00
Scott Côté
e449373832 style: cargo fmt 2021-05-10 23:00:29 -04:00
Scott Côté
f221528ee5 feat: Add secrecy crate feature 2021-05-10 20:49:48 -04:00
Sunli
deeedf11a6 Clippy clean 2021-05-07 10:14:05 +08:00
Sunli
6aa191fba5 Add secret attribute for arguments, they will not appear in the log. #463 2021-04-07 19:40:19 +08:00
Sunli
7000651b88 Rework Extension 2021-04-04 14:37:41 +08:00
Sunli
7ff4db8f1a Implements ScalarType for serde_json::Value. 2021-04-01 16:54:54 +08:00
Sunli
f62843cbd3 Add Request::disable_introspection method. #456 2021-03-30 11:59:57 +08:00
Denis Nevmerzhitskii
876d78e188 Fix chrono-tz integration 2021-03-24 19:09:08 +02:00
Sunli
e9c4a5d189 Update docs 2021-03-22 13:27:24 +08:00
Sunli
8310fa4350 Now all features are not activated by default. 2021-03-22 10:39:17 +08:00
Sunli
5c644de219 Switch the async runtime used for testing to Tokio. 2021-03-12 12:47:24 +08:00
Sunli
97d5097b10 Execute _entity requests in parallel. #431 2021-03-07 16:37:34 +08:00
Sunli
baa837f2ca Allow the deprecation attribute to have no reason. 2021-02-27 11:59:58 +08:00
Sunli
60d4eb5394 Improve the performance of introspection queries. 2021-02-24 12:06:11 +08:00
Sunli
cd8da606f2 When introspection is disabled, introspection related types are no longer registered. 2021-02-23 12:49:41 +08:00
Sunli
95e372e0d3 Add Send + Sync constraints for InputType, OutputType and SubscriptionType. 2021-01-14 12:41:59 +08:00
Sunli
f10cda9e78 Add custom complexity for subscription. 2020-12-19 18:39:33 +08:00
Sunli
ec82e64a39 Improve depth and complex. 2020-12-18 18:56:28 +08:00
Sunli
e29b7a3627 Add visible attributes on types, fields, and parameters, allowing some content to be hidden based on conditions. 2020-12-12 16:23:53 +08:00