Skip to content

Commit

Permalink
Add missing handleAsSDL property to UrlSchemaOptions type (#9360)
Browse files Browse the repository at this point in the history
  • Loading branch information
beerose authored May 1, 2023
1 parent b2d2ea5 commit 63827fa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/khaki-dolphins-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-codegen/plugin-helpers': patch
---

Add handleAsSDL property to UrlSchemaOptions type
4 changes: 4 additions & 0 deletions packages/utils/plugins-helpers/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ export namespace Types {
* @description HTTP Method to use, either POST (default) or GET.
*/
method?: string;
/**
* @description Handling the response as SDL will allow you to load schema from remote server that doesn't return a JSON introspection.
*/
handleAsSDL?: boolean;
}
export interface UrlSchemaWithOptions {
[url: string]: UrlSchemaOptions;
Expand Down
6 changes: 5 additions & 1 deletion website/public/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3592,7 +3592,11 @@
"description": "Specify a Node module name, or a custom file, to be used instead of standard `fetch`",
"type": "string"
},
"method": { "description": "HTTP Method to use, either POST (default) or GET.", "type": "string" }
"method": { "description": "HTTP Method to use, either POST (default) or GET.", "type": "string" },
"handleAsSDL": {
"description": "Handling the response as SDL will allow you to load schema from remote server that doesn't return a JSON introspection.",
"type": "boolean"
}
}
},
"Types.LocalSchemaPathWithOptions": {
Expand Down

0 comments on commit 63827fa

Please sign in to comment.