Skip to content

Commit 77ef899

Browse files
fix(indexer): remove cdn_asset_uris from getCollectionData query
The local testnet indexer does not have the cdn_asset_uris table/relationship on current_collections_v2, causing CI test failures with the error: 'field cdn_asset_uris not found in type: current_collections_v2' This removes the cdn_asset_uris field from: - src/internal/queries/getCollectionData.graphql - src/types/generated/operations.ts (GetCollectionDataQuery type) - src/types/generated/queries.ts (query string) Fixes CI failures in e2e tests for account.test.ts and digitalAsset.test.ts Co-authored-by: Greg Nazario <greg@gnazar.io>
1 parent d10017e commit 77ef899

File tree

4 files changed

+1
-33
lines changed

4 files changed

+1
-33
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T
1919

2020
## Fixed
2121

22+
- Remove `cdn_asset_uris` field from `getCollectionData` GraphQL query to fix compatibility with local testnet indexer which does not have this table
2223
- Fix security vulnerabilities in transitive dependencies via pnpm overrides:
2324
- HIGH: `glob` command injection (override `sucrase` to 3.35.1)
2425
- MODERATE: `lodash` prototype pollution (override to 4.17.23)

src/internal/queries/getCollectionData.graphql

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,5 @@ query getCollectionData($where_condition: current_collections_v2_bool_exp!) {
1414
description
1515
last_transaction_timestamp
1616
last_transaction_version
17-
cdn_asset_uris {
18-
cdn_image_uri
19-
asset_uri
20-
animation_optimizer_retry_count
21-
cdn_animation_uri
22-
cdn_json_uri
23-
image_optimizer_retry_count
24-
json_parser_retry_count
25-
raw_animation_uri
26-
raw_image_uri
27-
}
2817
}
2918
}

src/types/generated/operations.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -403,17 +403,6 @@ export type GetCollectionDataQuery = {
403403
description: string;
404404
last_transaction_timestamp: any;
405405
last_transaction_version: any;
406-
cdn_asset_uris?: {
407-
cdn_image_uri?: string | null;
408-
asset_uri: string;
409-
animation_optimizer_retry_count: number;
410-
cdn_animation_uri?: string | null;
411-
cdn_json_uri?: string | null;
412-
image_optimizer_retry_count: number;
413-
json_parser_retry_count: number;
414-
raw_animation_uri?: string | null;
415-
raw_image_uri?: string | null;
416-
} | null;
417406
}>;
418407
};
419408

src/types/generated/queries.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,17 +267,6 @@ export const GetCollectionData = `
267267
description
268268
last_transaction_timestamp
269269
last_transaction_version
270-
cdn_asset_uris {
271-
cdn_image_uri
272-
asset_uri
273-
animation_optimizer_retry_count
274-
cdn_animation_uri
275-
cdn_json_uri
276-
image_optimizer_retry_count
277-
json_parser_retry_count
278-
raw_animation_uri
279-
raw_image_uri
280-
}
281270
}
282271
}
283272
`;

0 commit comments

Comments
 (0)