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

Casting pagination value as and ID but getting a string error #59

Open
jacmacmod opened this issue Nov 25, 2022 · 0 comments
Open

Casting pagination value as and ID but getting a string error #59

jacmacmod opened this issue Nov 25, 2022 · 0 comments

Comments

@jacmacmod
Copy link

Below is an opaque string for the cursor value:
0x14000909420g3QAAAABZAACaWRtAAAAGjAxR0pCUDlYMzhZRktWRjMzMjQzTVM4Q1o2

However I get the following error when casting the value with graphql.ID().

Message: Variable $after of type ID! found as input to argument of type String.
exit status 1

My current workaround is to pass the after value in a predefined input and handle the value on the backend, however it would be nice to pass this relay opaque string as a cursor value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant