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