We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e93b78 commit 93d1eb6Copy full SHA for 93d1eb6
1 file changed
packages/apollo-cli/src/load-config.ts
@@ -59,7 +59,7 @@ export function loadConfigStep(
59
};
60
}
61
62
- if (!ctx.config.queries || ctx.config.queries.length == 0) {
+ if (!ctx.config.queries || ctx.config.queries.length == 0 && flags.queries) {
63
ctx.config.queries = [
64
{
65
schema: "default",
@@ -68,7 +68,7 @@ export function loadConfigStep(
68
69
];
70
71
- else if (flags.queries != '**/*.graphql') {
+ else if (flags.queries && flags.queries != '**/*.graphql') {
72
ctx.config.queries = ctx.config.queries.map((query: any) => {
73
return Object.assign({}, query, {
74
includes: flags.queries.split("\n")
0 commit comments