In a transaction, how do you ignore generated field requirements?
Typescript will complain that
insertTextDocumentChunk
needs id
and created_at
even though they are Generated
values.5 Replies
Solution
im assuming id/created_at are nullable on
document
while the generated schema is expecting them to not be null
Ah. That's what I'm missing. Silly mistake
Thank you
Actually, I figured out what was really wrong - I shouldn't have had to add an optional on those fields.
I was using
Selectable<TextDocumentTable>
and Selectable<TextDocumentChunkTable>
for the insert inputs for insertTextDocument
/ insertTextDocumentChunk
when it should be using Insertable
instead of Selectable
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View