Skip to content

Commit

Permalink
added more rules
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Dec 14, 2021
1 parent 72fed6f commit c055457
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ http = "0.2.3"
fail = { version = "0.5", features = ["failpoints"] }
futures = "0.1.21"
graphql-parser = "0.4.0"
graphql-tools = "0.0.5"
graphql-tools = "0.0.6"
lazy_static = "1.4.0"
mockall = "0.8.3"
num-bigint = { version = "^0.2.6", features = ["serde"] }
Expand Down
2 changes: 1 addition & 1 deletion graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ crossbeam = "0.8"
futures01 = { package="futures", version="0.1.29" }
graph = { path = "../graph" }
graphql-parser = "0.4.0"
graphql-tools = "0.0.5"
graphql-tools = "0.0.6"
indexmap = "1.7"
Inflector = "0.11.3"
lazy_static = "1.2.0"
Expand Down
5 changes: 4 additions & 1 deletion graphql/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ use graph::{
prelude::QueryStore,
};
use graphql_tools::validation::rules::{
FragmentsOnCompositeTypes, LoneAnonymousOperation, OverlappingFieldsCanBeMerged,
FragmentsOnCompositeTypes, KnownFragmentNamesRule, LoneAnonymousOperation, NoUnusedFragments,
OverlappingFieldsCanBeMerged,
};
use graphql_tools::validation::validate::{validate, ValidationPlan};

Expand Down Expand Up @@ -145,6 +146,8 @@ where
graphql_validation_plan.add_rule(Box::new(LoneAnonymousOperation {}));
graphql_validation_plan.add_rule(Box::new(FragmentsOnCompositeTypes {}));
graphql_validation_plan.add_rule(Box::new(OverlappingFieldsCanBeMerged {}));
graphql_validation_plan.add_rule(Box::new(KnownFragmentNamesRule {}));
graphql_validation_plan.add_rule(Box::new(NoUnusedFragments {}));

GraphQlRunner {
logger,
Expand Down

0 comments on commit c055457

Please sign in to comment.