Sunli
96e423ff31
Fixes #911
2022-05-06 09:28:57 +08:00
Sunli
88ba75ec70
Rework connection types
2022-04-19 19:18:06 +08:00
Sunli
5dad855f8e
Export @oneOf
directive to SDL when Oneof type is defined. #766
2022-03-05 09:06:59 +08:00
Sunli
a4b840a984
Add support for oneof field on object. #766
2022-03-04 21:24:17 +08:00
Sunli
eb022a0cca
Rework validators
2021-11-14 21:09:14 +08:00
Rodgers
53c4945fc4
Update AND, OR, and MapErr logic. Update logic for object input
2021-07-08 23:43:12 +07:00
Sunli
144ddb752c
Clippy clean
2021-02-26 20:05:09 +08:00
Olexiy Buyanskyy
3ac150bef9
removed not needed namespaces
2020-10-23 13:49:00 +03:00
Olexiy Buyanskyy
baf67f3344
Fixed redundant_closure_for_method_calls
...
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
2020-10-23 11:10:00 +03:00
Koxiaet
93c886af07
Make imports consistent
2020-10-15 07:38:10 +01:00
Sunli
12f15f4815
2.0.2
2020-10-14 11:11:52 +08:00
Sunli
2d0c192df8
Fix a bug in the validator.
2020-10-14 10:54:46 +08:00
Sunli
e056edbaa0
Add parse_value
and from_value
funcntions.
2020-10-11 20:24:31 +08:00
Sunli
20d240df47
Fix enum strings in query variables are not converted to proper enums. #270
2020-09-20 13:28:18 +08:00
Koxiaet
04c898ef01
Rustfmt
2020-09-08 09:30:29 +01:00
Koxiaet
47259548c4
Support service parsing in async-graphql-parser
...
- Instead of adding a separate module `schema` like there was before,
since service parsing and executable parsing have a fair amount of
overlap I put them as two submodules `executable` and `service` in both
`parse` and `types`. Also, the grammar is unified under one `.pest`
file.
- Added const equivalents to `Value`, `Directive` etc
- Change the reexport `async_graphql::Value` from
`async_graphql_parser::types::Value` to
`async_graphql_parser::types::ConstValue` since in 99% of cases in this library
a const value is wanted instead of a value.
- Added consistent usage of executable/service instead of the ambiguous
query/schema.
- Some of the tests actually had invalid GraphQL so the new more correct
grammar made them fail, that was fixed.
- Added a `Name` newtype to refer to GraphQL names
(`[A-Za-z_][A-Za-z_0-9]*`) since they are used so frequently.
2020-09-08 09:21:27 +01:00
Koxiaet
81d85c2535
Rewrite async-graphql-parser
2020-09-06 06:38:31 +01:00
Sunli
503339f504
InputValueValidator::is_valid function now returns the Result type. #221
2020-07-30 09:43:51 +08:00
Sunli
909ae5e64d
Fix input validator is ignored when using variable #207
2020-07-11 10:05:30 +08:00
sunli
c16d239b65
Remove some unsafe code
2020-05-16 21:14:26 +08:00
Sunli
6de85377f7
Rename async_graphql_parser::ast to async_graphql_parser::query
2020-05-15 10:38:48 +08: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
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
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
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
724cb21258
add GraphQL Cursor Connections
2020-03-19 17:20:12 +08:00
sunli
ecc861de3b
add some validation rules
2020-03-10 14:14:09 +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
d7692414ea
add some validation code
2020-03-08 20:35:36 +08:00