mirror of
https://github.com/expo/eas-app-prototype.git
synced 2026-11-14 17:50:19 -10:00
24 lines
564 B
TypeScript
24 lines
564 B
TypeScript
import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
|
|
const config: CodegenConfig = {
|
|
overwrite: true,
|
|
schema: 'https://exp.host/--/graphql',
|
|
documents: './graphql/**/*.gql',
|
|
generates: {
|
|
'./generated/graphql.tsx': {
|
|
plugins: ['typescript', 'typescript-operations', 'typescript-react-apollo'],
|
|
config: {
|
|
skipTypename: false,
|
|
withHooks: true,
|
|
withHOC: false,
|
|
withComponent: false,
|
|
},
|
|
},
|
|
'./generated/schema.graphql': {
|
|
plugins: ['schema-ast'],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|