You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
################################################################################ GraphQL configuration file## Configure the graphQL tooling, like cli and generation of graphql typescript# types and definitions.## The 'codegen' extension manage the generation of typescript types for the# backend graphQL API.## The 'codegen' extension uses a set of plugins to generate the types:# - typescript, convert the schema to typescript types# - typescript-operations, convert the queries and fragments# - near-operation-file-preset, generates the definitions next to the gql file# - typed-document-node, create definitions for the queries with specific types## More info:# - https://graphql-cli.com/# - https://graphql-config.com/# - https://graphql-code-generator.com/###############################################################################schema: './src/libs/backend/schema.gql'documents:
- ./src/**/*.gqlextensions:
codegen:
generates:
./src/libs/backend/schema.gql.d.ts:
config:
enumsAsTypes: trueskipTypename: trueplugins:
- add:
content:
- '/* *****************************************************************************'
- ' * THIS FILE IS GENERATED - PLEASE DO NOT EDIT'
- ' * '
- ' * This file contains typescript definitions for the backend graphQL API'
- ' *****************************************************************************/'
- typescript./src:
preset: near-operation-filepresetConfig:
baseTypesPath: ./libs/backend/schema.gql.d.tsextension: .gql.d.tsconfig:
documentVariableSuffix: ''namingConvention: 'keep'enumsAsTypes: trueconstEnums: trueskipTypename: trueexportFragmentSpreadSubTypes: trueplugins:
- add:
content:
- '/* *****************************************************************************'
- ' * THIS FILE IS GENERATED - PLEASE DO NOT EDIT'
- ' * '
- ' * This file contains typescript definitions for the backend graphQL API'
- ' *****************************************************************************/'
- typescript-operations
- typed-document-node
Is there an existing issue for this?
Current Behavior
Auto-completion, "go to definition" and general LSP functionality expectations are not working.
Expected Behavior
The aforementioned expectations should work.
Steps To Reproduce
Install the package and add change the coc.nvim settings as suggested: https://github.com/graphql/graphiql/tree/main/packages/graphql-language-service-cli#lsp-workspace-configuration
Open a
.gql
or.graphql
file and trigger the Coc auto-completion (usuallyctrl + space
) and nothing will be returned.IMPORTANT: IntelliJ & https://github.com/neovim/nvim-lspconfig clients work as expected.
Environment
OS:
MacOS Sonoma 14.5 (23F79)
LSP Client:
Nvim
Coc
Anything else?
No response
The text was updated successfully, but these errors were encountered: