Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types are not merged when extended #122

Open
ganeshpms opened this issue Jan 31, 2019 · 3 comments
Open

Types are not merged when extended #122

ganeshpms opened this issue Jan 31, 2019 · 3 comments

Comments

@ganeshpms
Copy link

My .gqlconfig has schema files as following

schema: {
    files: {include: ['libs/schema/src/**/*.gql', 'app/src/client-schema.gql']}
 }

and I have the Query defined inside ../schema folder

type Query {
   item: Item!
   items: [Items!]!
}

and I have the Query defined inside ../app/src/clientschema.gql

extend type Query {
   selectedItems : [Items!]
}

Now, I am writing a query which look like

query Cart {
  items{
     ...
  }
  selectedItems @client{
    ...
  }
}

The above scenario is working fine with gql-gen tool and the app which is wriiten in angular app. The issue is that the VSCode GraphQL is not recognizing the sectedItems and giving linting error.

Expected, merge the types when it is extended using extend, I hope which is not hapening now.

@kumarharsh
Copy link
Owner

Good issue. I think the correct place for this would be the @playlyfe/gql language server repo. @Mayank1791989 is that correct?

@lucasconstantino
Copy link

Mayank1791989/gql#45

@arackaf
Copy link

arackaf commented Jun 29, 2021

For those winding up here, it looks like this project is largely abandoned, with a more current VS Code plugin here:

https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants