winsoroaks
winsoroaks•16mo ago

Return type from db is any?

Hi team! I am still trying to prototype my DB and i've been seeing return type of "any." Is this expected? In other words, once i do "defineSchema" and "defineTable" to my db, i will be getting the correct type for each field returned. Thanks!
No description
2 Replies
ballingt
ballingt•16mo ago
Have you done definedSchema yet? If not this is right, until you define a schema and the generated code is updated (via any of npm run dev, npx convex dev, or npx convex codegen) queries will return any.
winsoroaks
winsoroaksOP•16mo ago
i have not! this makes sense. thanks! 🙂

Did you find this page helpful?