️ Accept array of string as valid input schema path. (#134)

* Fixes #88. Accept array of string as valid input schema path.
This commit is contained in:
Hasibul Hasan
2021-10-04 13:33:21 -07:00
committed by GitHub
parent 5e3c4d1be8
commit 59b6df6aab
7 changed files with 124 additions and 21 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ When releasing a new version:
### New features:
- genqlient now generates getter methods for all fields, even those which do not implement a genqlient-generated interface; this can be useful for callers who wish to define their own interface and have several unrelated genqlient types which have the same fields implement it.
- genqlient config now accepts either a single or multiple schema files for the `schema` field.
### Bug fixes:
- In certain very rare cases involving duplicate fields in fragment spreads, genqlient would generate code that failed to compile due to duplicate methods not getting promoted; genqlient now generates correct types. (See #126 for a more complete description.)
+5
View File
@@ -4,6 +4,11 @@
# The filename with the GraphQL schema (in SDL format), relative to
# genqlient.yaml.
# This can also be a list of filenames, such as:
# schema:
# - user.graphql
# - ./schema/*.graphql
# - ./another_directory/**/*.graphqls
schema: schema.graphql
# Filenames or globs with the operations for which to generate code, relative