aPureBase / KGraphQL

Pure Kotlin GraphQL implementation
https://kgraphql.io
MIT License
298 stars 58 forks source link

Top level fields with skip/include directives ignored for mutations #216

Open rramaa-dh opened 1 year ago

rramaa-dh commented 1 year ago

This is duplicate of https://github.com/aPureBase/KGraphQL/issues/65. After the fix for that issue, now the top level fields are skipped/included for queries. But the same does not work for mutations

query getTodos @skip(if: true) {
    // this works and the query is skipped
}

mutation createTodos @skip(if: true) {
    // this does not work and the mutation is executed
}