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

GraphQLCuid is not compatible with cuid2 #2399

Open
4 tasks
Natchii59 opened this issue Jun 1, 2024 · 1 comment
Open
4 tasks

GraphQLCuid is not compatible with cuid2 #2399

Natchii59 opened this issue Jun 1, 2024 · 1 comment

Comments

@Natchii59
Copy link

Issue workflow progress

Progress of the issue based on the Contributor Workflow

  • 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox

Make sure to fork this template and run yarn generate in the terminal.

Please make sure the GraphQL Scalars package version under package.json matches yours.

  • 2. A failing test has been provided
  • 3. A local solution has been provided
  • 4. A pull request is pending review

Describe the bug
I use this package to create my cuids. But when I return this id in graphql with the GraphQLCuid scalar, it tells me that this cuid is not valid.

To Reproduce
It's complicated to reproduce, because I have the impression that the error appears 1 in 4 times. But here is a cuid that GraphQLCuid finds invalid: dp71y53f6eykvl5g1393rmhl

Expected behavior
I expected GraphQLCuid to not throw an error regarding my cuid.

Environment:

  • OS: Macos 14.5
  • GraphQL Scalars Version: 1.23.0
  • NodeJS: v20.13.1

Additional context

@Natchii59
Copy link
Author

I'm using the cuid2 package, because cuid package has security issues.

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