put config-file-relative paths in exported queries (and error messages)

This commit is contained in:
Ben Kraft
2021-04-01 16:51:00 -07:00
parent 9fe8f09e8c
commit 4b06c94eed
4 changed files with 44 additions and 25 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ func Generate(config *Config) (map[string][]byte, error) {
return nil, err
}
document, err := getAndValidateQueries(config.Operations, schema)
document, err := getAndValidateQueries(config.BaseDir(), config.Operations, schema)
if err != nil {
return nil, err
}