Meldbase TypeScript API
Preparing search index...
@meldbase/client
RemoteLiveQuery
Class RemoteLiveQuery<T>
Type Parameters
T
extends
Document
Index
Constructors
constructor
Properties
collection
mode
spec
Methods
fetch
fetch
Page
subscribe
Constructors
constructor
new
RemoteLiveQuery
<
T
extends
Document
>
(
client
:
MeldbaseClient
,
collection
:
string
,
spec
:
QuerySpec
,
seekPagination
?:
boolean
,
)
:
RemoteLiveQuery
<
T
>
Type Parameters
T
extends
Document
Parameters
client
:
MeldbaseClient
collection
:
string
spec
:
QuerySpec
seekPagination
:
boolean
= false
Returns
RemoteLiveQuery
<
T
>
Properties
Readonly
collection
collection
:
string
Readonly
mode
mode
:
"remote"
= ...
Readonly
spec
spec
:
QuerySpec
Methods
fetch
fetch
(
options
?:
{
signal
?:
AbortSignal
}
)
:
Promise
<
T
[]
>
Parameters
options
:
{
signal
?:
AbortSignal
}
= {}
Returns
Promise
<
T
[]
>
fetch
Page
fetchPage
(
options
?:
{
signal
?:
AbortSignal
}
)
:
Promise
<
PageResult
<
T
>
>
Parameters
options
:
{
signal
?:
AbortSignal
}
= {}
Returns
Promise
<
PageResult
<
T
>
>
subscribe
subscribe
(
listener
:
SnapshotListener
<
T
>
,
options
?:
SubscribeOptions
,
)
:
Unsubscribe
Parameters
listener
:
SnapshotListener
<
T
>
options
:
SubscribeOptions
= {}
Returns
Unsubscribe
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
collection
mode
spec
Methods
fetch
fetch
Page
subscribe
Meldbase TypeScript API
Loading...