lsync API
Preparing search index...
@lsync/server
authorizeWriteBatch
Function authorizeWriteBatch
authorizeWriteBatch
(
batch
:
{
updates
:
{
clientId
?:
string
;
collection
:
string
;
createdAt
:
number
;
id
:
string
;
key
:
string
|
number
;
path
?:
string
;
previousValue
?:
unknown
;
type
:
"insert"
|
"update"
|
"delete"
;
value
?:
unknown
;
}
[]
;
}
,
collections
:
CollectionConfigs
|
undefined
,
auth
:
AccessAuth
,
store
:
AccessStore
,
)
:
void
Parameters
batch
:
{
updates
:
{
clientId
?:
string
;
collection
:
string
;
createdAt
:
number
;
id
:
string
;
key
:
string
|
number
;
path
?:
string
;
previousValue
?:
unknown
;
type
:
"insert"
|
"update"
|
"delete"
;
value
?:
unknown
;
}
[]
;
}
collections
:
CollectionConfigs
|
undefined
auth
:
AccessAuth
store
:
AccessStore
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
lsync API
Loading...