keiji2K
Convex Community3y ago
5 replies
keiji2

Optional field not reflecting in Generated Schema if no value present yet

Hello everyone,

I'm encountering an issue with my Convex project where a gender field added to my playerDescriptions table is not appearing in the generated schema on the Convex Dashboard, despite being present in my local schema.ts file. Here's what I've done so far:

1. Added gender: v.optional(v.string()) to playerDescriptions in playerDescription.ts.
2. Included playerDescriptions in my schema.ts.
3. Ran
npx convex dev
to sync changes.

Despite these steps, the gender field is not showing up in the generated schema, although it appears correctly in the local schema definition. I've checked for syntax errors and tried restarting the development server, but the issue persists.

Has anyone else experienced this or have any suggestions on what might be going wrong? Any advice would be greatly appreciated!

Thank you!
2023-12-26_21.12.29.png
2023-12-26_21.12.36.png
Was this page helpful?