lsync API
Preparing search index...
@lsync/client
createBatch
Function createBatch
createBatch
<
T
extends
object
>
(
collection
:
string
,
clientId
:
string
,
transaction
:
Pick
<
TransactionWithMutations
<
T
>
,
"mutations"
>
,
)
:
{
updates
:
{
clientId
?:
string
;
collection
:
string
;
createdAt
:
number
;
id
:
string
;
key
:
string
|
number
;
path
?:
string
;
previousValue
?:
unknown
;
type
:
"insert"
|
"update"
|
"delete"
;
value
?:
unknown
;
}
[]
;
}
Type Parameters
T
extends
object
Parameters
collection
:
string
clientId
:
string
transaction
:
Pick
<
TransactionWithMutations
<
T
>
,
"mutations"
>
Returns
{
updates
:
{
clientId
?:
string
;
collection
:
string
;
createdAt
:
number
;
id
:
string
;
key
:
string
|
number
;
path
?:
string
;
previousValue
?:
unknown
;
type
:
"insert"
|
"update"
|
"delete"
;
value
?:
unknown
;
}
[]
;
}
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
lsync API
Loading...