Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cshadek opened this issue Oct 31, 2020 · 2 comments
Open

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

cshadek opened this issue Oct 31, 2020 · 2 comments
Labels

Comments

@cshadek
Copy link
Contributor

cshadek commented Oct 31, 2020

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.

@paulofaria
Copy link
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.

@cshadek
Copy link
Contributor Author

cshadek commented Feb 21, 2021

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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants