Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/commands/commands/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export interface GlobalArgs {
leftHeader?: string[];
rightHeader?: string[];
federation?: boolean;
federationV2?: boolean;
aws?: boolean;
method?: string;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/commands/coverage/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export default createCommand<
const silent = args.silent;
const { headers, token } = parseGlobalArgs(args);
const apolloFederation = args.federation || false;
const apolloFederationV2 = args.federationV2 || false;
const aws = args.aws || false;
const method = args.method?.toUpperCase() || 'POST';

Expand All @@ -117,6 +118,7 @@ export default createCommand<
method,
},
apolloFederation,
apolloFederationV2,
aws,
);
const documents = await loaders.loadDocuments(args.documents);
Expand Down
3 changes: 3 additions & 0 deletions packages/commands/diff/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export default createCommand<
const oldSchemaPointer = args.oldSchema;
const newSchemaPointer = args.newSchema;
const apolloFederation = args.federation || false;
const apolloFederationV2 = args.federationV2 || false;
const aws = args.aws || false;
const method = args.method?.toUpperCase() || 'POST';
const { headers, leftHeaders, rightHeaders, token } = parseGlobalArgs(args);
Expand All @@ -151,6 +152,7 @@ export default createCommand<
method,
},
apolloFederation,
apolloFederationV2,
aws,
);
const newSchema = await loaders.loadSchema(
Expand All @@ -161,6 +163,7 @@ export default createCommand<
method,
},
apolloFederation,
apolloFederationV2,
aws,
);

Expand Down
2 changes: 2 additions & 0 deletions packages/commands/introspect/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default createCommand<
const output = args.write!;
const comments = args.comments || false;
const apolloFederation = args.federation || false;
const apolloFederationV2 = args.federationV2 || false;
const aws = args.aws || false;
const method = args.method?.toUpperCase() || 'POST';

Expand All @@ -100,6 +101,7 @@ export default createCommand<
method,
},
apolloFederation,
apolloFederationV2,
aws,
);

Expand Down
2 changes: 2 additions & 0 deletions packages/commands/serve/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default createCommand<
async handler(args) {
const { headers, token } = parseGlobalArgs(args);
const apolloFederation = args.federation || false;
const apolloFederationV2 = args.federationV2 || false;
const aws = args.aws || false;
const method = args.method?.toUpperCase() || 'POST';

Expand All @@ -54,6 +55,7 @@ export default createCommand<
method,
},
apolloFederation,
apolloFederationV2,
aws,
);

Expand Down
2 changes: 2 additions & 0 deletions packages/commands/similar/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export default createCommand<
const type = args.name;
const threshold = args.threshold;
const apolloFederation = args.federation || false;
const apolloFederationV2 = args.federationV2 || false;
const aws = args.aws || false;
const method = args.method?.toUpperCase() || 'POST';

Expand All @@ -128,6 +129,7 @@ export default createCommand<
method,
},
apolloFederation,
apolloFederationV2,
aws,
);

Expand Down
3 changes: 3 additions & 0 deletions packages/commands/validate/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ export default createCommand<
const apollo = args.apollo || false;
const aws = args.aws || false;
const apolloFederation = args.federation || false;
const apolloFederationV2 = args.federationV2 || false;

const method = args.method?.toUpperCase() || 'POST';
const maxDepth = args.maxDepth == null ? undefined : args.maxDepth;
const maxAliasCount = args.maxAliasCount == null ? undefined : args.maxAliasCount;
Expand Down Expand Up @@ -311,6 +313,7 @@ export default createCommand<
method,
},
apolloFederation,
apolloFederationV2,
aws,
);
const documents = await loaders.loadDocuments(args.documents, {
Expand Down
Loading
Loading