Skip to content

Is it possible to add custom fields to Connections? #47

Open

Description

@cshadek

For example, how could we add a totalCount field to the Connection or maybe even another field to the Edge object.

This use case is discussed here: https://graphql.org/learn/pagination/

This is also used in the Github API.

Activity

  1. paulofaria commented on Feb 10, 2021

    @paulofaria
    Member

    Hey, @cshadek. We don't provide a way to do that with the existing infrastructure for Connection. You can always create your own connection type with any extra data you might want.

  2. cshadek commented on Feb 21, 2021

    @cshadek
    ContributorAuthor

    Thanks @paulofaria. One of the main useful additions to Connections I can think of would be having a totalCount field. Have you considered this in the past?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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