Skip to content

Commit

Permalink
Remove schema awareness (#99)
Browse files Browse the repository at this point in the history
* Remove schema awareness introspection

* bump version
  • Loading branch information
johnpmitsch authored Sep 13, 2023
1 parent e80e5ae commit 45ecf68
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12,384 deletions.
3 changes: 0 additions & 3 deletions packages/libs/sdk/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ generates:
src/api/graphql/fragmentMatcher.ts:
plugins:
- fragment-matcher
src/api/graphql/schema.json:
plugins:
- introspection
3 changes: 1 addition & 2 deletions packages/libs/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"directory": "packages/libs/sdk"
},
"license": "MIT",
"version": "1.1.1",
"version": "1.1.2",
"main": "./cjs/index.js",
"module": "./esm/src/index.js",
"types": "./index.d.ts",
Expand All @@ -23,7 +23,6 @@
"devDependencies": {
"@graphql-codegen/cli": "4.0.1",
"@graphql-codegen/fragment-matcher": "^3.3.1",
"@graphql-codegen/introspection": "^3.0.1",
"@graphql-codegen/typed-document-node": "^4.0.1",
"@graphql-codegen/typescript": "2.8.0",
"@graphql-codegen/typescript-operations": "^2.5.5",
Expand Down
2 changes: 0 additions & 2 deletions packages/libs/sdk/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
} from './controllers';
import { ChainName } from './types/chains';
import { DEFAULT_CHAIN } from './utils/constants';
import schema from './graphql/schema.json';
import { TransactionsController } from './controllers/transactions';
import packageJson from '../../package.json';

Expand Down Expand Up @@ -85,7 +84,6 @@ export class API {
const useTransactionHashAndIndex = (data: Data) =>
`${data['transactionHash']}:${data['transferIndex']}`;
const urqlCache = cacheExchange({
schema,
keys: {
EVMSchemaType: () => null, // The entity has no key and no parent entity so effectively won't cache
Collection: useAddressAsKey,
Expand Down
Loading

0 comments on commit 45ecf68

Please sign in to comment.