Revert "[gitlab] simplify gql schema download"

This reverts commit 40ced41cce.

GitLab removed the SDL files from the docs: baedeb4ee8
master
Laura Liberda 2021-02-20 04:11:47 +01:00
parent 13de9bd4aa
commit 20cfde5ea3
2 changed files with 2 additions and 6 deletions

View File

@ -29,11 +29,7 @@ const schemas: [
[string | URL, GotOptions & { isStream?: true | undefined }],
][] = [
['github', 'graphql', ['https://docs.github.com/public/schema.docs.graphql', {}]],
[
'gitlab',
'graphql',
['https://docs.gitlab.com/ee/api/graphql/reference/gitlab_schema.graphql', {}],
],
['gitlab', 'json', ['https://gitlab.com/api/graphql', introspection]],
];
Promise.all(

View File

@ -1,5 +1,5 @@
overwrite = true
schema= 'src/vendor/gitlab/schema.graphql'
schema= 'src/vendor/gitlab/schema.json'
[config]
typesPrefix = 'GL'