[Query collection] how to insert with defaults
hi guys.
i have this query collection its query function is a server function that fetches from my database:
i only need to fill the fields from the message schema since fields like
is there any way to handle this?
thank u so much in advance!
i have this query collection its query function is a server function that fetches from my database:
i only need to fill the fields from the message schema since fields like
id are auto incrementing and dates has defaults set but when i make an insert, the collection makes me provide all fields.is there any way to handle this?
thank u so much in advance!