Skip to content

Commit 2ea1494

Browse files
OperationTransformer + access to Field in OperationVisitor::enter_argument (#44)
Co-authored-by: Dotan Simha <[email protected]>
1 parent cc74ef4 commit 2ea1494

File tree

7 files changed

+686
-41
lines changed

7 files changed

+686
-41
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authors = ["Dotan Simha <[email protected]>"]
1313
[dependencies]
1414
graphql-parser = "^0.4.0"
1515
serde = { version = "1.0", features = ["derive"] }
16-
serde_json = "1.0"
16+
serde_json = "1.0"
1717

1818
[dev-dependencies]
1919
graphql-parser = "0.4.0"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ cargo add graphql-tools
3535
- [x] `struct` extensions
3636
- [x] GraphQL Validation engine
3737
- [x] Validation rules
38+
- [x] GraphQL operations transformer
3839

3940
> If you have an idea / missing feature, feel free to open an issue / start a GitHub discussion!
4041

src/ast/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
pub mod collect_fields;
22
pub mod ext;
3+
pub mod operation_transformer;
34
pub mod operation_visitor;
45
/// Utilities visiting GraphQL AST trees
56
pub mod schema_visitor;
67

78
pub use self::collect_fields::*;
89
pub use self::ext::*;
10+
pub use self::operation_transformer::*;
911
pub use self::operation_visitor::*;
1012
pub use self::schema_visitor::*;

0 commit comments

Comments
 (0)