cjoudrey/graphql-schema-linter
Non-null Int types for "first" argument are not accepted by rule "relay-connection-arguments-spec"
开放
#148 创建于 2018年9月7日
enhancementhelp wanted
仓库指标
- 星标
- (704 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
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?