Prometheus Entity Management API
Preparing search index...
@prometheus-ags/entity-graph-core
createGraphQLSubscriptionAdapter
Function createGraphQLSubscriptionAdapter
createGraphQLSubscriptionAdapter
<
T
extends
object
>
(
opts
:
{
client
:
GQLWsClient
;
extractId
?:
(
node
:
Record
<
string
,
unknown
>
,
type
:
string
)
=>
string
;
normalize
?:
(
node
:
Record
<
string
,
unknown
>
,
type
:
string
,
)
=>
Record
<
string
,
unknown
>
;
subscriptions
:
GQLSubscriptionConfig
<
T
>
[]
;
}
,
)
:
RealtimeAdapter
Type Parameters
T
extends
object
Parameters
opts
:
{
client
:
GQLWsClient
;
extractId
?:
(
node
:
Record
<
string
,
unknown
>
,
type
:
string
)
=>
string
;
normalize
?:
(
node
:
Record
<
string
,
unknown
>
,
type
:
string
,
)
=>
Record
<
string
,
unknown
>
;
subscriptions
:
GQLSubscriptionConfig
<
T
>
[]
;
}
Returns
RealtimeAdapter
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Prometheus Entity Management API
Loading...