cjoudrey/graphql-schema-linter

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

Ouverte

#148 ouverte le 7 sept. 2018

 (3 commentaires) (0 réaction) (0 personne assignée)JavaScript (61 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (704 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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?

Guide contributeur