Document creation type
What's the correct way to re-use my schema elements in the functions? I'm trying to use them as is and for example insert them, but running into problems that there are also _id, _creationTime fields, that I'd like to auto-populate.
Concretely here is a mutation I'd like to call
And here is the callsite
I'm getting
2 Replies
@alexcole may have a better idea, but i wonder if
Omit<Document<"generations">, "_id"|"_creationTime">
would work
oh i believe you can import WithoutSystemFields
from convex/server
and then do WithoutSystemFields<Document<"generations">>
oh great, let me try that
unfortuately cannot use because of the id -> string hydration issue discussed in another thread