Skip to content

Commit e88c1ce

Browse files
committed
Update v2 file name pattern to match proposed changes
1 parent abfafe7 commit e88c1ce

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

packages/apollo-server-plugin-operation-registry/src/__tests__/common.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ describe('common', () => {
55
expect(common.getStoreKey('abc123')).toStrictEqual('apq:abc123');
66
});
77

8-
it('uses the v2 manifest prefix', () => {
8+
it('uses the v2 manifest suffix', () => {
99
expect(
1010
common.getOperationManifestUrl('aServiceId', 'aSchemaHash'),
11-
).toStrictEqual('v2/aServiceId/aSchemaHash');
11+
).toStrictEqual('aServiceId/aSchemaHash.v2.json');
1212
});
1313
});

packages/apollo-server-plugin-operation-registry/src/common.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ export function getOperationManifestUrl(
2626
hashedServiceId: string,
2727
schemaHash: string,
2828
): string {
29-
return [urlOperationManifestBase, 'v2', hashedServiceId, schemaHash].join(
30-
'/',
29+
return (
30+
[urlOperationManifestBase, hashedServiceId, schemaHash].join('/') +
31+
'.v2.json'
3132
);
3233
}
3334

0 commit comments

Comments
 (0)