genql icon indicating copy to clipboard operation
genql copied to clipboard

Add support for directives

Open remorses opened this issue 2 years ago • 4 comments

The syntax would be

client.query({ field: { __directive: '@something' } })

Upvote this issue with a 👍 if you care about directives

remorses avatar Feb 17 '23 18:02 remorses

I think it will be an really nice feature.Hasura have directives like @include(if: true) and for jsonb fileds like properties(path:"some.path") like:

query{
  anonymous_queries{
    properties(path:"some.path") @include(if:true)
  }
}

With this syntax will be possible to generate same query?

Relaxe111 avatar Feb 19 '23 16:02 Relaxe111

Any update on this?

theomessin avatar Sep 22 '23 12:09 theomessin

It's pretty common to have directives like @aws_iam and @aws_api_key.

berenddeboer avatar Sep 25 '23 21:09 berenddeboer

@remorses any update on this feature ?

shiftlabs1 avatar Dec 15 '23 10:12 shiftlabs1