mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
* 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
27 lines
570 B
YAML
27 lines
570 B
YAML
schema:
|
|
- http://localhost:8080/v1/graphql
|
|
documents:
|
|
overwrite: true
|
|
config:
|
|
scalars:
|
|
DateTime: Date
|
|
JSON: "{ [key: string]: any }"
|
|
generates:
|
|
./autogen/hasura/gql.ts:
|
|
plugins:
|
|
- graphql-codegen-hasura-gql
|
|
documents:
|
|
- ./customFragments.ts
|
|
config:
|
|
reactApolloVersion: 3
|
|
typescriptCodegenOutputPath: ../
|
|
trimString:
|
|
withQueries: true
|
|
withSubscriptions: false
|
|
withInserts: false
|
|
withUpdates: false
|
|
withDeletes: false
|
|
./autogen/graphql.schema.json:
|
|
plugins:
|
|
- introspection
|