99designs / 99designs/gqlgen

gqlgen doesn't generate code by contract with @specifiedBy or @deprecated

Ouverte
#2,685 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Go
Étoiles
10.8k
Forks
1.3k
Merge moyen
2 j 36 min
PR mergées (30 j)
26

Description

### What happened?

https://github.com/krupyansky/gqlgen-bug

Run `go run graph/generate.go`

After I can see error "failed to load schema: graph/schema.graphqls:23: Undefined directive shareable."

If I remove "@specifiedBy" from graph/schema.graphqls, or remove "@deprecated", or move declaration of scalar on the top, than I can see generated files without error.

### What did you expect?

I expect generated code without removing or moving declarations, because my contract is right.

### Minimal graphql.schema and models to reproduce

https://github.com/krupyansky/gqlgen-bug

### versions

https://github.com/krupyansky/gqlgen-bug

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.