8000 totalCount function "args" are not typed based on "additionalArgs" in the same way as "nodes" function · Issue #1160 · graphql-nexus/nexus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
totalCount function "args" are not typed based on "additionalArgs" in the same way as "nodes" function #1160
Open
@Bernold1

Description

@Bernold1

When using the connectionPlugin total count:

import { connectionPlugin } from 'nexus'

    connectionPlugin({
      cursorFromNode: (node) => node.id,
      disableBackwardPagination: true,
      extendConnection: {
        totalCount: { type: nonNull('Int'), requireResolver: false },
      },
    }),

args have no inferred type in totalCount, which results in typing errors, which are only resolved when casting the args to any or using @ts-ignore. Is there a workaround to this, or is this potentially a known bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0