MordsithM
Convex Community8mo ago
25 replies
Mordsith

How to get the schema definitions

I need help with getting the full paths to all functions from a single
api
variable.

I'm building a tool; with this tool, I want to pass my convex generated
api
variable. Within the tool, I would like to access all the properties it has. I went deep in the codebase and realized this is inferred from typescript. The actual
api
is a Proxy object.

How do I get all the routes from a single
api
variable on the client side? On the server side, I can parse the api.d.ts file and do what I want. On the client, I do not have direct access to the file, is there a workaround?
Was this page helpful?