updated codegen, fixed tsconfig, added prisma
added login, registration and session check
This commit is contained in:
parent
9518787206
commit
04b606b7fa
24 changed files with 740 additions and 1747 deletions
14
codegen.ts
14
codegen.ts
|
|
@ -2,20 +2,26 @@ import type { CodegenConfig } from '@graphql-codegen/cli';
|
|||
|
||||
const config: CodegenConfig = {
|
||||
overwrite: true,
|
||||
|
||||
schema: './app/server/graphql/schema.graphql',
|
||||
documents: ['app/client/fragments', 'app/client/**/*.tsx'],
|
||||
generates: {
|
||||
'./__generated__/': {
|
||||
preset: 'client',
|
||||
presetConfig: {
|
||||
preset: 'client',
|
||||
gqlTagName: 'gql'
|
||||
},
|
||||
plugins: ['typescript', 'typescript-resolvers']
|
||||
plugins: ['typescript', 'typescript-resolvers', 'typescript-resolvers']
|
||||
},
|
||||
'./__generated__/types.ts': {
|
||||
plugins: ['typescript', 'typescript-operations']
|
||||
plugins: ['typescript', 'typescript-operations', 'typescript-resolvers'],
|
||||
config: {
|
||||
scalars: {
|
||||
Void: 'void'
|
||||
}
|
||||
}
|
||||
},
|
||||
'./graphql.schema.json': {
|
||||
'./__generated__/graphql.schema.json': {
|
||||
plugins: ['introspection']
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue