Skip to content

Commit be5fc87

Browse files
authored
feat(core): init graphql.tada (#662)
1 parent 46b0656 commit be5fc87

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.changeset/fair-cheetahs-relate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bigcommerce/catalyst-core": minor
3+
---
4+
5+
export a graphql() powered by gql.tada

apps/core/client/graphql.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { initGraphQLTada } from 'gql.tada';
2+
3+
import type { introspection } from '~/graphql-env';
4+
5+
export const graphql = initGraphQLTada<{
6+
introspection: introspection;
7+
scalars: {
8+
DateTime: string;
9+
Long: number;
10+
BigDecimal: number;
11+
};
12+
disableMasking: true;
13+
}>();
14+
15+
export type { FragmentOf, ResultOf, VariablesOf } from 'gql.tada';
16+
export { readFragment } from 'gql.tada';

0 commit comments

Comments
 (0)