Skip to content

Commit 93d1eb6

Browse files
author
klujanrosas
committed
re-add check for presence of flags.queries
1 parent 9e93b78 commit 93d1eb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/apollo-cli/src/load-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function loadConfigStep(
5959
};
6060
}
6161

62-
if (!ctx.config.queries || ctx.config.queries.length == 0) {
62+
if (!ctx.config.queries || ctx.config.queries.length == 0 && flags.queries) {
6363
ctx.config.queries = [
6464
{
6565
schema: "default",
@@ -68,7 +68,7 @@ export function loadConfigStep(
6868
}
6969
];
7070
}
71-
else if (flags.queries != '**/*.graphql') {
71+
else if (flags.queries && flags.queries != '**/*.graphql') {
7272
ctx.config.queries = ctx.config.queries.map((query: any) => {
7373
return Object.assign({}, query, {
7474
includes: flags.queries.split("\n")

0 commit comments

Comments
 (0)