Skip to content

GraphQLCuid is not compatible with cuid2 #2399

@Natchii59

Description

@Natchii59

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

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