[gitlab] simplify gql schema download
This commit is contained in:
parent
b942645273
commit
40ced41cce
|
@ -29,7 +29,11 @@ const schemas: [
|
|||
[string | URL, GotOptions & { isStream?: true | undefined }],
|
||||
][] = [
|
||||
['github', 'graphql', ['https://docs.github.com/public/schema.docs.graphql', {}]],
|
||||
['gitlab', 'json', ['https://gitlab.com/api/graphql', introspection]],
|
||||
[
|
||||
'gitlab',
|
||||
'graphql',
|
||||
['https://docs.gitlab.com/ee/api/graphql/reference/gitlab_schema.graphql', {}],
|
||||
],
|
||||
];
|
||||
|
||||
Promise.all(
|
||||
|
|
2
src/vendor/gitlab/codegen.yml
vendored
2
src/vendor/gitlab/codegen.yml
vendored
|
@ -1,5 +1,5 @@
|
|||
overwrite: true
|
||||
schema: src/vendor/gitlab/schema.json
|
||||
schema: src/vendor/gitlab/schema.graphql
|
||||
config:
|
||||
typesPrefix: GL
|
||||
generates:
|
||||
|
|
Loading…
Reference in a new issue