99designs / 99designs/gqlgen

Add the directives that are called to the comment above the respective resolver function

オープン
#3,762 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
10.8k
フォーク
1.3k
平均マージ
2日 36分
マージ済み PR(30日)
26

説明

It would be helpful to see in the resolver files for which functions a directive is called.
I did not find the option of using templates or similar for the comment generation.

e.g.:
```graphql

...
type Query {
status: String! @adminRequired
}

directive @adminRequired on FIELD_DEFINITION
...
```

results in:

```golang
...
// Status is the resolver for the status field.
// @adminRequired
func (r *queryResolver) Status(ctx context.Context) (string, error) {
return "OK - GraphQL Running", nil
}
...
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。