genql
genql copied to clipboard
Add support for directives
The syntax would be
client.query({ field: { __directive: '@something' } })
Upvote this issue with a 👍 if you care about directives
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?
Any update on this?
It's pretty common to have directives like @aws_iam and @aws_api_key.
@remorses any update on this feature ?