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

Bridg rules assume id type is always string #111

Open
JoeRoddy opened this issue Mar 23, 2024 · 0 comments
Open

Bridg rules assume id type is always string #111

JoeRoddy opened this issue Mar 23, 2024 · 0 comments

Comments

@JoeRoddy
Copy link
Collaborator

Add support for Int id's. Bridg assumes user ids are always strings, but they can be ints, possibly more types.

  • Lazy quick implementation would be to just change the type to string | number
  • Ideally we would inspect the project's prisma schema and dynamically infer the primary key's type from that and set that as the TS type of the userId
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