graphql / graphql-spec

GraphQL is a query language and execution engine tied to any backend service.
https://spec.graphql.org
14.31k stars 1.13k forks source link

why not allow directive on field argument ? #1061

Closed Boyce-Lee closed 9 months ago

Boyce-Lee commented 1 year ago

in my work, I use GQL As a well-defined DSL for BFF perpose to link backend data, like rpc / http / or other datasrouce. directive on field argument is import feature for me. what I want :

query Demo(
   id: String
) {
     AInfo(
        id: $id @check(validate: "_ > 10")
     ) {
        name
    }

   BInfo(
      id: $id @check(validate: "_ > 20") @transfer(expr: "_ + 10")
   ) {
       name
  }
}
glen-84 commented 9 months ago

Duplicate of #931.

benjie commented 9 months ago

This does indeed seem to be a duplicate; please add your use case to that thread :+1: