2023-09-01から1ヶ月間の記事一覧
事象 以下のように、schema.graphql が見つからない旨のエラーが出ることがある。 $ go run github.com/99designs/gqlgen generate unable to open schema: open schema.graphql: no such file or directory exit status 1 例えば、graphql スキーマは src/r…
1. gqlgen.yml で設定を有効化する gqlgen.yml の autobind 設定のコメントを解除し、有効化する。 # gqlgen will search for any type names in the schema in these go packages # if they match it will use them, otherwise it will generate them. auto…