NicolasN
tRPC3y ago
2 replies
Nicolas

Issue Inferring Type on Frontend with ElectroDB Query Return Statement

Hi all,

I am using ElectroDB to work with DynamoDB, and I have a Lambda function that uses tRPC that uses ElectroDB commands to read/write to my database.

I have a weird situation where the backend tRPC can infer the return type properly from my ElectroDB queries, but on the frontend (React), it says that the useQuery() response is of type
any


Attached screenshots show this
image.png
image.png
Was this page helpful?