cjoudrey/graphql-schema-linter

Non-null Int types for "first" argument are not accepted by rule "relay-connection-arguments-spec"

Open

#148 aberto em 7 de set. de 2018

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (62 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (669 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

The following queries all fail lint checks:

  notablePeople(first: Int!, after: ID): NotablePersonConnection!

  users(first: Int!, after: ID, where: UsersQueryWhereInput): UserConnection!
    @requireOneOfRoles(roles: [MODERATOR])

  notablePeopleEvents(
    first: Int!
    after: ID
    where: NotablePersonEventsQueryWhereInput
  ): NotablePersonEventConnection!

If I remove the !, they all pass. Should not non-null integer types be accepted?

Guia do colaborador