Commit Graph

937 Commits

Author SHA1 Message Date
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
Samuel Hurel
d3015e9814 Simplify cursor conversion 2020-05-10 14:49:52 +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
2755f4f9a9 Use rustdoc comments as graphql desc. #62 2020-05-10 12:41:05 +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
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
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
Blaine Bublitz
c678dde4be Allow datasource to use context 2020-05-06 17:04:26 -07:00
Sunli
96f19e8498 Update base.rs 2020-05-06 10:02:25 +08:00
sunli
64aee618fc Make PageInfo available from outside (#52) 2020-05-06 06:52:04 +08:00
sunli
35531b65f8 Change the first parameter of OutputValueType::resolve to be &self 2020-05-05 21:06:48 +08:00
Blaine Bublitz
e4101db924 Relay pagination algorithm 2020-05-05 00:22:01 -07:00
Samuel Hurel
034306cc10 Export the new Cursor type 2020-05-05 09:05:39 +02:00
sunli
d7ea05ab14 Add tests to limit complexity and depth. 2020-05-05 13:46:56 +08:00
Blaine Bublitz
eaa50a52e0 Add Cursor scalar (#48)
* Add Cursor scalar
2020-05-05 13:21:45 +08:00
sunli
18a9a12664 Fixed a type error 2020-05-03 23:00:20 +08:00
sunli
f3697e6a1a Implement OutputType for FieldResult 2020-05-03 22:32:37 +08:00
sunli
220cd1e775 Report subscription stream errors to the client. 2020-05-03 16:02:46 +08:00
sunli
d7df065528 Fixed a bug that caused the subscription request to fail to receive any messages. #45 2020-05-03 10:06:17 +08:00
sunli
c9fe0e9393 Add some test 2020-05-03 09:12:14 +08:00
sunli
ee50ae9be6 Update lib.rs 2020-05-02 10:46:02 +08:00
sunli
331e65a72b Add field guard 2020-05-02 07:57:34 +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
3f49ebce0e Move project to async-graphql 2020-04-28 15:41:31 +08:00
sunli
8faa376776 Add tracing extension 2020-04-28 15:01:19 +08:00
sunli
61583f54a3 Replace the impl_scalar macro with the procedural macro Scalar 2020-04-27 17:58:10 +08:00
sunli
4659da9c30 fix #33 2020-04-27 12:57:52 +08:00
sunli
a4b4e69ea7 Remove the redundant field parameter for OutputType::resolve_field. 2020-04-26 15:12:18 +08:00
sunli
70b8ecc311 Update connection_type.rs 2020-04-26 14:40:55 +08:00
sunli
88f6e468e7 Some minor changes 2020-04-26 12:34:08 +08:00
sunli
c1fcaf0b7e Update lib.rs 2020-04-26 10:12:01 +08:00
sunli
3f06a12b3d Update base.rs 2020-04-25 14:57:01 +08:00
sunli
85f3bbe3af Implemented OutputValueType for Box<T> and Arc<T> 2020-04-25 14:51:26 +08:00
Samuel Hurel
6996fae099 Add bson::UtcDateTime support 2020-04-24 19:12:07 +02:00
sunli
740804e327 Extension::result now returns an Option 2020-04-24 10:37:18 +08:00
sunli
964cf0e140 Update context.rs 2020-04-24 10:05:41 +08:00
sunli
11ddf0ae29 Fix typo 2020-04-23 22:54:34 +08:00
sunli
8647688ab5 Update connection.rs 2020-04-23 22:07:41 +08:00
sunli
1917d236ae Use FnvHashMap for Data 2020-04-23 21:36:04 +08:00
sunli
4247cbcb47 v1.9.17 2020-04-23 18:11:03 +08:00
sunli
bf9712ad03 v1.9.15 2020-04-23 15:30:12 +08:00
sunli
d564ce27f1 Websocket transport creates context data from the connect_init.payload property 2020-04-23 14:52:22 +08:00
sunli
a4781523fb v1.9.11
Add context data for subscription
2020-04-23 10:26:16 +08:00
sunli
44bd920ad2 Update error.rs 2020-04-22 19:09:59 +08:00
sunli
8210ab240a Update graphiql_source.rs 2020-04-22 18:47:20 +08:00
sunli
d76decdc16 Clippy cleanup 2020-04-22 15:03:41 +08:00
sunli
279244d106 Fix interface resolver bug 2020-04-22 14:59:14 +08:00
sunli
3724d1c62e Update query.rs 2020-04-22 10:35:07 +08:00
sunli
359d3f64c0 v1.9.8 2020-04-21 20:49:32 +08:00
sunli
c11ed53c48 Add SchemaBuilder::register_type method 2020-04-21 20:47:48 +08:00
sunli
041eb7b1b7 v1.9.7
Add a `ref` attribute to the field attribute of `SimpleObject`.
2020-04-21 15:40:19 +08:00
sunli
98cdfd4c42 v1.9.5 2020-04-21 12:13:14 +08:00
sunli
a11248aa95 Add IntoQueryBuilderOpts 2020-04-21 10:14:14 +08:00
sunli
13b7ce2e59 Merge branch 'master' of github.com:sunli829/async-graphql 2020-04-20 14:40:25 +08:00
sunli
affacd81d0 v1.9.4 2020-04-20 14:37:28 +08:00
nicolaiunrein
248e29c40b Fix url linking from Upload to example. 2020-04-20 07:59:10 +02:00
sunli
18b5ab1c49 Add some docs 2020-04-19 10:28:52 +08:00
sunli
0b9d5ee071 The int64 scalar serializes to a string 2020-04-19 10:17:47 +08:00
sunli
ad9cd7073c Add InputValueValidatorExt trait 2020-04-18 10:25:39 +08:00
sunli
4cf83e333b Add some docs
v1.9.2
2020-04-17 11:06:33 +08:00
sunli
e1115b0a31 Add some docs 2020-04-16 17:51:10 +08:00
sunli
9ca3962571 Add some docs 2020-04-16 11:06:09 +08:00
sunli
2ff4d31f53 Update lib.rs 2020-04-14 11:44:49 +08:00
sunli
09d5e5f489 v1.9.0 2020-04-14 09:53:17 +08:00
sunli
a53e61abf9 v1.8.1 2020-04-11 17:40:29 +08:00
sunli
0b6bfd4c33 Add GQLHttpRequest and IntoQueryBuilder trait 2020-04-11 17:36:05 +08:00
sunli
4ad543dff7 Update README 2020-04-10 10:28:27 +08:00
sunli
f8613b5276 v1.8.0 2020-04-10 10:26:08 +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
a813ce72a3 v1.7.8 2020-04-08 09:05:54 +08:00
sunli
66c22c52e6 Fixed simpleBroker panics at called Option::unwrap() on a None value if used with more than one type 2020-04-07 22:17:48 +08:00
sunli
5c710ff744 Add SimpleBroker 2020-04-07 14:30:46 +08:00
sunli
7b85062c6e v1.7.6 2020-04-06 19:57:21 +08:00
sunli
ed85c85bf4 Add subscription test 2020-04-06 18:30:38 +08:00
sunli
ccc1f832e3 v1.7.5 2020-04-06 13:51:59 +08:00
sunli
b88ac80084 The subscription field now returns a stream 2020-04-06 13:49:39 +08:00
sunli
4fd9c33be7 Add codecov settings 2020-04-05 16:22:13 +08:00
sunli
79f46843aa v1.7.4 2020-04-05 16:14:22 +08:00
sunli
185e1fb8e6 Add some test, modified from juniper 2020-04-05 16:00:26 +08:00
sunli
197eed8629 Add mutation resolver 2020-04-03 22:19:15 +08:00
sunli
e6eb331ae4 Named framgment should support the ObjectType. 2020-04-03 21:48:21 +08:00
sunli
1b05724390 If the field name or parameter name is wrong, give suggestion 2020-04-03 13:57:24 +08:00
sunli
0ddf5d913e Update base.rs 2020-04-03 09:31:58 +08:00
sunli
c60e4a51ab Fixed panic when uploading binary file 2020-04-03 09:27:22 +08:00
sunli
1f41bb4a8e Merge branch 'error-type' 2020-04-02 21:05:44 +08:00
sunli
269f0f0d61 Update error.rs 2020-04-02 14:40:00 +02:00
sunli
945730db06 Return the correct type at the union and interface 2020-04-02 20:37:01 +08:00
sunli
9d09ba04b0 Update error.rs 2020-04-02 12:57:53 +08:00
sunli
506e82895f Add Schema::execute 2020-04-02 12:53:53 +08:00
sunli
cb0ca21a3d Extract line and column from ParseError 2020-04-02 12:37:04 +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
b373e1397d remove PreparedQuery 2020-04-01 16:53:49 +08:00
sunli
a3de6960a0 Update connection.rs 2020-03-31 16:41:04 +08:00
sunli
d4c4c52069 Support unnamed inline fragment 2020-03-31 15:09:28 +08:00
sunli
a13204273e v1.6.8
Add context data support
2020-03-31 11:19:18 +08:00
nicolaiunrein
3a3dfcc67e Update upload.rs 2020-03-30 16:47:17 +02:00
nicolaiunrein
4ec15b0749 Update upload.rs 2020-03-30 16:36:27 +02:00
nicolaiunrein
cea92039c5 Update upload.rs 2020-03-30 16:31:38 +02:00
Nicolai Unrein
441d163e93 add documentation to upload 2020-03-30 16:25:35 +02:00
sunli
eebb5ac119 v1.6.7 2020-03-30 11:32:19 +08:00
sunli
3372512c3d Add validation for the InputObject field 2020-03-30 10:45:41 +08:00
Sunli
8b86952e7f Merge pull request #10 from nicolaiunrein/master
ExtendedError and ResultExt inital draft
2020-03-29 23:45:29 +08:00
Nicolai Unrein
5157d95efc ExtendedError and ResultExt inital draft 2020-03-29 16:31:45 +02:00
sunli
9cdd0c45a3 v1.6.4 2020-03-29 20:02:52 +08:00
sunli
643213206b Field method must be async asynchronous
Support for synchronization functions doe provide performance improvement
2020-03-28 20:11:26 +08:00
sunli
f231f690e2 Support for synchronous and asynchronous resolve functions 2020-03-27 11:59:58 +08:00
sunli
15fbe9502a Add SimpleObject macro 2020-03-27 10:20:20 +08:00
sunli
dd6af84902 Add chrono_tz scalar 2020-03-27 09:03:30 +08:00
sunli
fb1fef022b v1.6.2 2020-03-26 18:30:29 +08:00
sunli
7b9592e37c Update lib.rs 2020-03-26 15:27:35 +08:00
sunli
bc0d6603c1 v1.6.0 2020-03-26 11:34:28 +08:00
sunli
bf7332378c v1.5.2 2020-03-25 15:07:16 +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
e6bb9b82ed Add CacheControl for object 2020-03-22 16:45:59 +08:00
sunli
788a3b558b v1.4.2 2020-03-22 09:34:32 +08:00
sunli
1d0148f63c Add input value validators 2020-03-21 15:07:11 +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
d7631e6896 Update lib.rs 2020-03-18 11:15:02 +08:00
sunli
41f6d5fcc0 v1.2.1
subscription support directive and fragment
2020-03-18 11:13:45 +08:00
sunli
f41123c7da v1.2.0 2020-03-17 19:11:14 +08:00
sunli
60b0282a89 Support subscription 2020-03-17 17:26:59 +08:00
sunli
41d8d618cc Update schema.rs 2020-03-15 15:32:54 +08:00
sunli
abfe861749 Add support for multipart request 2020-03-14 11:46:20 +08:00
sunli
27442145c6 v1.0.0 2020-03-12 17:11:02 +08:00
sunli
a36e68d226 Update provided_non_null_arguments.rs 2020-03-11 15:23:28 +08:00
sunli
ea6e32baf1 add KnownDirectives rule 2020-03-11 10:10:56 +08:00
sunli
feb71eef22 add ProvidedNonNullArguments rule 2020-03-10 20:35:25 +08:00
sunli
de96634f1f add PossibleFragmentSpreads rule 2020-03-10 18:07:47 +08:00
sunli
78faced65f update minimum rust version 2020-03-10 15:39:50 +08:00
sunli
d8c0018856 Update visitor.rs 2020-03-10 15:17:01 +08:00
sunli
1987a7402b Update mod.rs 2020-03-10 14:30:16 +08:00
sunli
ecc861de3b add some validation rules 2020-03-10 14:14:09 +08:00
sunli
678733725f Update lib.rs 2020-03-09 20:59:31 +08:00
sunli
0fa674aea8 Update lib.rs 2020-03-09 20:59:25 +08:00
sunli
20d627b838 add some validation rules 2020-03-09 20:39:46 +08:00
sunli
e0471ddc10 auto rename to camelcase 2020-03-09 20:00:57 +08:00
sunli
18185ed7a2 v0.10.4 2020-03-09 18:05:52 +08:00
sunli
e20fdc1671 v0.10.2 2020-03-09 12:08:50 +08:00
sunli
ce3d4cbc33 fix some bug 2020-03-09 09:33:36 +08:00
sunli
0477ea1dd7 v0.10.1 2020-03-08 20:58:22 +08:00
sunli
d7692414ea add some validation code 2020-03-08 20:35:36 +08:00
sunli
ce9ca29c3d implemented union type 2020-03-08 09:21:29 +08:00
sunli
61fa882a89 Fixed a problem with the return value reference context lifetime 2020-03-07 18:03:19 +08:00
sunli
f4760ac1e5 Update optional.rs 2020-03-07 12:39:34 +08:00
sunli
7a0f9b97a1 hide ContextBase export 2020-03-07 11:27:44 +08:00
sunli
18e1014788 fix some bugs 2020-03-07 11:21:56 +08:00
sunli
b4edae7981 Added support for inline fragment 2020-03-07 10:39:55 +08:00
sunli
40edb87fe0 Update context.rs 2020-03-07 00:19:22 +08:00
sunli
69b3dea88c implemented interface 2020-03-06 23:58:43 +08:00
sunli
b0e7a63a8d Update optional.rs 2020-03-06 08:42:06 +08:00
sunli
c52ba00526 Update directive.rs 2020-03-05 21:42:34 +08:00
sunli
2351e75f2c fix some bug
add starwars example
2020-03-05 21:34:31 +08:00
sunli
b3340680ba v0.8.0 2020-03-05 17:06:14 +08:00
sunli
b3974737fc implemented query fragment 2020-03-05 15:50:57 +08:00
sunli
e9cc5969f2 Rewrite the object generation code 2020-03-05 14:23:55 +08:00
sunli
cc96dba8d8 add actix-web example 2020-03-05 08:39:56 +08:00
sunli
4735636a0b Update lib.rs 2020-03-04 14:27:00 +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
f090df76f7 add schema model 2020-03-03 11:48:49 +08:00
sunli
332faa70fa query root 2020-03-03 11:48:43 +08:00
sunli
cb96ba9048 hide some object 2020-03-02 01:15:05 +08:00
sunli
af8d4d0f4b add ID scalar 2020-03-02 00:59:04 +08:00
sunli
781aabdff0 variables supported 2020-03-02 00:52:05 +08:00
sunli
1be04c68e0 add some files 2020-03-01 21:56:14 +08:00
sunli
b62abdcd83 add InputObject 2020-03-01 21:35:39 +08:00
sunli
5030a28361 init commit 2020-03-01 18:54:34 +08:00