Files
TheGame/packages/graphql-codegen/graphql-codegen-typescript.yaml
Pacien Boisson c684b9d836 Base architecture (#1)
* Hasura and base models

* Added role public SELECT permissions

* Added role player UPDATE permissions

* basic backend api

* Added SELECT permissions for player

* Update backend to typescript

* init app-react

* Add apollo

* graphql-codegen not working well...

* Added web3 to web app

* connecting frontend with web3

* Auth webhook verifies eth signature

* Update frontend to fetch player_id
2020-04-16 10:20:15 +02:00

67 lines
1.6 KiB
YAML

schema:
- ./autogen/graphql.schema.json
overwrite: true
config:
scalars:
DateTime: Date
JSON: "{ [key: string]: any }"
generates:
./autogen/index.tsx:
documents:
- ./customFragments.ts
- ./autogen/hasura/gql.ts
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
config:
reactApolloVersion: 3
withHooks: false
withHOC: false
withComponent: false
skipTypename: false
includeDirectives: true
./autogen/hasura/ts.ts:
documents:
- ./customFragments.ts
plugins:
- graphql-codegen-hasura-typescript
config:
reactApolloVersion: 3
typescriptCodegenOutputPath: "../"
trimString:
withClientAndCacheHelpers: true
withQueries: true
withSubscriptions: false
withInserts: false
withUpdates: false
withDeletes: false
./autogen/hasura/react.ts:
documents:
- ./customFragments.ts
plugins:
- graphql-codegen-hasura-react
config:
reactApolloVersion: 3
typescriptCodegenOutputPath: "../"
trimString:
withQueries: true
withSubscriptions: false
withInserts: false
withUpdates: false
withDeletes: false
./autogen/hasura/config.ts:
documents:
- ./customFragments.ts
plugins:
- graphql-codegen-hasura-client-config
config:
reactApolloVersion: 3
typescriptCodegenOutputPath: "../"
trimString:
withTypePolicies: true
withResolverTypes: true
withCombinedTypePolicyObject: false
withCacheRedirects: true
withCombinedCacheRedirectObject: true