* feat: introduce gql schema sdl generation to the backend * chore: update gql-codegen consumers to get schema from generated sdl * chore: hoppscotch-backend generates gql sdl on postinstall * fix: add back missed part of generate-gql-sdl script * chore: updated generate sdl script to hardcode whitelisted domains * chore: add prisma generate on postinstall script --------- Co-authored-by: ankitsridhar16 <ankit.sridhar16@gmail.com>
19 lines
476 B
YAML
19 lines
476 B
YAML
overwrite: true
|
|
schema: "../../gql-gen/*.gql"
|
|
generates:
|
|
src/helpers/backend/graphql.ts:
|
|
documents: "src/**/*.graphql"
|
|
plugins:
|
|
- add:
|
|
content: >
|
|
/* eslint-disable */
|
|
// Auto-generated file (DO NOT EDIT!!!), refer gql-codegen.yml
|
|
- typescript
|
|
- typescript-operations
|
|
- typed-document-node
|
|
- typescript-urql-graphcache
|
|
|
|
src/helpers/backend/backend-schema.json:
|
|
plugins:
|
|
- urql-introspection
|