Search
Preparing search index...
The search index is not available
Home
ApiService
Class ApiService
Hierarchy
Service
ApiService
Index
Constructors
constructor
Methods
destroy
init
mutate
query
subscribe
Constructors
constructor
new
Api
Service
(
options
:
ApiOptions
)
:
ApiService
Parameters
options:
ApiOptions
Returns
ApiService
Methods
destroy
destroy
(
)
:
void
Returns
void
init
init
(
context
:
Context
)
:
void
Parameters
context:
Context
Returns
void
mutate
mutate<T>
(
mutation
:
DocumentNode
, options
?:
ApiRequestOptions
<
T
>
)
:
Promise
<
T
>
Type parameters
T
:
{}
Parameters
mutation:
DocumentNode
Optional
options:
ApiRequestOptions
<
T
>
Returns
Promise
<
T
>
query
query<T>
(
query
:
DocumentNode
, options
?:
ApiRequestQueryOptions
<
T
>
)
:
Promise
<
T
>
Type parameters
T
:
{}
Parameters
query:
DocumentNode
Optional
options:
ApiRequestQueryOptions
<
T
>
Returns
Promise
<
T
>
subscribe
subscribe<T>
(
query
:
DocumentNode
, options
?:
ApiRequestOptions
<
T
>
)
:
Observable
<
T
>
Type parameters
T
:
{}
Parameters
query:
DocumentNode
Optional
options:
ApiRequestOptions
<
T
>
Returns
Observable
<
T
>
Globals
Api
Service
constructor
destroy
init
mutate
query
subscribe