You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
id
created_at: string
created_by: string
name: string
date: string
Some of these fields are populated automatically via triggers in the database so I don't want the user to pass them as parameters to insert. Instead, the insert parameters should be a subtype with only the name and date fileds:
I have a table
tickets
with rows:Some of these fields are populated automatically via triggers in the database so I don't want the user to pass them as parameters to insert. Instead, the insert parameters should be a subtype with only the
name
anddate
fileds:How can I type
useInsertMutation
(or modify my globalDatabase
type) such that the input tomutateAsync
is of typeInsertTicketPayload
?The text was updated successfully, but these errors were encountered: