freddie-codogo
09/11/2017, 11:36 AMinclude
and skip
be used to conditionally execute mutations?agartha
09/11/2017, 11:39 AMfreddie-codogo
09/11/2017, 11:40 AMagartha
09/11/2017, 11:41 AMmutation($skip: Boolean = true) {
createPost(description: "test") @skip(if: $skip)
{
id
}
}
freddie-codogo
09/11/2017, 11:48 AMfreddie-codogo
09/11/2017, 11:49 AMmutation($bar: Boolean = true $foo: Boolean = true) {
createPost(description: "test") @skip(if: $foo) @skip(if: $bar)
{
id
}
}
agartha
09/11/2017, 11:50 AMagartha
09/11/2017, 11:50 AMagartha
09/11/2017, 11:50 AMfreddie-codogo
09/11/2017, 11:51 AMfreddie-codogo
09/11/2017, 11:51 AMagartha
09/11/2017, 11:51 AMnilan
09/11/2017, 12:10 PMcan you have two directives?
nilan
09/11/2017, 12:10 PMnilan
09/11/2017, 12:11 PM@skip(if: $fooOrBar)
freddie-codogo
09/11/2017, 12:21 PM