Skip to content

Commit

Permalink
Call the production GraphQL server when creating generated GraphQL on…
Browse files Browse the repository at this point in the history
… local machine
  • Loading branch information
dr-bizz committed Jun 24, 2024
1 parent bea01bf commit 8de6e05
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions codegen.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
generates:
./src/graphql/types.generated.ts:
schema:
- ${API_URL:https://api.stage.mpdx.org/graphql}
- ${API_URL:https://api.mpdx.org/graphql}
- ./pages/api/Schema/**/*.graphql
plugins:
- typescript
Expand All @@ -11,7 +11,7 @@ generates:
ISO8601DateTime: string
./:
schema:
- ${API_URL:https://api.stage.mpdx.org/graphql}
- ${API_URL:https://api.mpdx.org/graphql}
- ./pages/api/Schema/**/*.graphql
documents: '**/*.graphql'
preset: near-operation-file
Expand All @@ -24,19 +24,19 @@ generates:
preResolveTypes: false
./src/graphql/schema.graphql:
schema:
- ${API_URL:https://api.stage.mpdx.org/graphql}
- ${API_URL:https://api.mpdx.org/graphql}
- ./pages/api/Schema/**/*.graphql
plugins:
- schema-ast
./src/graphql/possibleTypes.generated.ts:
schema:
- ${API_URL:https://api.stage.mpdx.org/graphql}
- ${API_URL:https://api.mpdx.org/graphql}
- ./pages/api/Schema/**/*.graphql
plugins:
- fragment-matcher
./pages/api/graphql-rest.page.generated.ts:
schema:
- ${API_URL:https://api.stage.mpdx.org/graphql}
- ${API_URL:https://api.mpdx.org/graphql}
- ./pages/api/Schema/**/*.graphql
plugins:
- typescript
Expand All @@ -48,7 +48,7 @@ generates:
ISO8601Date: string
ISO8601DateTime: string
./src/graphql/rootFields.generated.ts:
schema: ${API_URL:https://api.stage.mpdx.org/graphql}
schema: ${API_URL:https://api.mpdx.org/graphql}
plugins:
- ./extractRootFields.js
hooks:
Expand Down

0 comments on commit 8de6e05

Please sign in to comment.