David
David
Explore posts from servers
TtRPC
Created by David on 4/2/2025 in #❓-help
Turborepo internal package exported procedure context type `any`
I use 11.0.1
17 replies
TtRPC
Created by David on 4/2/2025 in #❓-help
Turborepo internal package exported procedure context type `any`
This doesn't solve it not working in another package / app though, does it?
17 replies
TtRPC
Created by David on 4/2/2025 in #❓-help
Turborepo internal package exported procedure context type `any`
Sick! Could you share what part of this repo solves it / I have to look at? Also feel free to @ me since I may not see it otherwise
17 replies
TtRPC
Created by David on 4/2/2025 in #❓-help
Turborepo internal package exported procedure context type `any`
Hope someone else may have a solution
17 replies
TtRPC
Created by David on 4/2/2025 in #❓-help
Turborepo internal package exported procedure context type `any`
Man, that is unfortunate to hear LOL
17 replies
TtRPC
Created by 0xtz on 4/2/2025 in #❓-help
Finding the Unused TRPC procedure...
You can delete/comment routers and see where you get type issues from the paths
6 replies
PPrisma
Created by David on 11/4/2024 in #help-and-questions
Argument "columnName" is missing (v5.21.1)
bump
3 replies
TtRPC
Created by David on 9/11/2024 in #❓-help
How to get line number in errors?
Thank you! Im using Turbopack in Next
8 replies
TtRPC
Created by David on 9/11/2024 in #❓-help
How to get line number in errors?
Im guessing this must be it then, do you have a reference where this is set up correctly that I can compare to? I do have sourceMap: true in tsconfig.
8 replies
PPrisma
Created by bill92 on 5/22/2024 in #help-and-questions
`PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime` error
Did you?
11 replies
PPrisma
Created by JayPe on 6/10/2024 in #help-and-questions
Multiple schema - node_modules - prisma client
Hey, we just do this in both of our schema.prisma files
output = "../../node_modules/@prisma/client-mysql"
output = "../../node_modules/@prisma/client-mysql"
8 replies
TtRPC
Created by David on 6/4/2024 in #❓-help
Best way to get the type of the first argument for .query or .mutation
Maybe its best I just explain what im looking to achieve. For file uploads our current flow is: 1. Get upload token through query 2. Use upload token to upload directly to S3 from browser 3. Call mutation to do something with this finished upload We currently reuse the same logic everywhere for this, but we've gotten to a point where quite often we want to do some type of server-side logic before returning an upload token, or after uploading. So I want to create a function that takes in a couple of arguments to help with this, and returns a router. So we can do something like:
const { upload ] = useUpload(trpc.path.to.specific.upload.router)

// useUpload
const upload = (args) => {
const token = await router.getUploadToken({ args })
// upload to S3
await router.onUploadFinished({ args })
}
const { upload ] = useUpload(trpc.path.to.specific.upload.router)

// useUpload
const upload = (args) => {
const token = await router.getUploadToken({ args })
// upload to S3
await router.onUploadFinished({ args })
}
10 replies
TtRPC
Created by David on 6/4/2024 in #❓-help
Best way to get the type of the first argument for .query or .mutation
Ah, is that only a v11 feature?
10 replies
TtRPC
Created by David on 6/4/2024 in #❓-help
Best way to get the type of the first argument for .query or .mutation
That looks like it can help me get what I need, thanks!
10 replies
TtRPC
Created by David on 6/4/2024 in #❓-help
Best way to get the type of the first argument for .query or .mutation
I want to do something like this:
.input(Zod).query(onUploadComplete(({ input, ctx }) => {
...
})
.input(Zod).query(onUploadComplete(({ input, ctx }) => {
...
})
10 replies
TtRPC
Created by David on 6/4/2024 in #❓-help
Best way to get the type of the first argument for .query or .mutation
That would return just the input, I assume? I want the type for the whole first argument that gets passed, incl context etc if possible
10 replies
PPrisma
Created by Florian on 5/11/2024 in #help-and-questions
Extra query into object (GetPayload)
You can use const name = {} satisfies Prisma.Type if you are above TS 4.9
5 replies
PPrisma
Created by David on 5/7/2024 in #help-and-questions
Set max execution timeout
Ah very cool, will try, thanks!
7 replies
PPrisma
Created by David on 5/7/2024 in #help-and-questions
Set max execution timeout
We use MySQL unfortunately. I should have mentioned
7 replies
PPrisma
Created by Wolverine on 5/3/2024 in #help-and-questions
How to Handle Case Insensitivity?
No description
9 replies