`convex-test` invalid identifier
Given this code:
It works as expected when the schema looks like this:
However, when a system field such as
_creationTime
is added to the schema, vitest
throws this error:
Error: Field names must be valid identifiers, got "_creationTime"
https://github.com/get-convex/convex-test/blob/83f7e271d41f086b16cfcf8f7efc53efd7491b19/index.ts#L838
Desired behaviour
Can convex-test
accept a schema with the same policy as defineSchema({...})
used in schema.ts
and not a more strict policy that doesn't allow for _creationTime
?
defineSchema({...})
allows the _creationTime
field.1 Reply
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!