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

How can I mark an insert as only returning one row? #41

Closed
MrSuttonmann opened this issue Apr 9, 2024 · 2 comments
Closed

How can I mark an insert as only returning one row? #41

MrSuttonmann opened this issue Apr 9, 2024 · 2 comments

Comments

@MrSuttonmann
Copy link

I'm inserting a row into a table, but the results property that comes back is typed as <TableType | TableType[]>.

My IDE gives the following error:

image

I'm guessing just casting the result to the singular is a workaround?

@G4brym
Copy link
Owner

G4brym commented May 24, 2024

Hey @MrSuttonmann, currently you need to cast the result to singular, because my typescript knowledge is limited and i didn't manage to solve this issue
I will try to solve it again soon, but meanwhile pull requests are well come to solve this 😄

@G4brym
Copy link
Owner

G4brym commented Jun 1, 2024

Hello @MrSuttonmann i've just published a new version (v1.2.3) that solves your issue, can you install the update and confirm the fix?
Thanks

@G4brym G4brym closed this as completed Jun 5, 2024
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

2 participants