How do i create `skipAuth` directives.
- Langage dominant
- Go
- Étoiles
- 10.8k
- Forks
- 1.3k
- Merge moyen
- 2 j 36 min
- PR mergées (30 j)
- 26
Description
### What happened?
I am working on adding a skipAuth directives to queries that will render certain queries accessible to the public, provided the skipAuth directive is specified.
### What did you expect?
Referring to this document (https://gqlgen.com/reference/directives/), the directive operates subsequent to the authorization middleware. My goal is to find a strategy that facilitates the execution of the directive or checks if `skipAuth` is specified within the auth middleware before moving forward.
### Minimal graphql.schema and models to reproduce
```graphql
type Query {
gates: Gate! @skipAuth
}
```
### versions
- go run github.com/99designs/gqlgen version?
`v0.17.16`
- go version?
`go1.19.1 darwin/amd64`
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.