tRPCttRPC
Powered by
NicolasN
tRPC•3y 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()
useQuery()
response is of type
any
any


Attached screenshots show this
image.png
image.png
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

trpc useQuery/useMutation not inferring return type of prisma query
Ahmad ShbeebAAhmad Shbeeb / ❓-help
2y ago
Type issue react query with enabled.
wleistraWwleistra / ❓-help
4y ago
return type of a query endpoint
rustclanRrustclan / ❓-help
3y ago