Skip to content

Extended types are ignored #227

Closed
Closed
@Baloche

Description

@Baloche

Hello 👋

My schema :

type Query {
  games: [Game]!
}

type Game {
  id: ID!
  name: String!
}

extend type Game {
  playersCount: Int!
}

My query :

const query = gql`
  query games {
    games {
      id
      name
      playersCount
  }
`

The warning I get :

Cannot query field "playersCount" on type "Game". eslint(graphql/template-strings)

Extended types are not supported by the plugin or am I doing something wrong ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions