Search
Preparing search index...
The search index is not available
API Reference | Injective - Powering the future of decentralized finance.
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
API Reference | Injective - Powering the future of decentralized finance.
@injectivelabs/sdk-ts
internal
ApolloClient
Class ApolloClient<TCacheShape>
Type Parameters
TCacheShape
Hierarchy
ApolloClient
Implements
DataProxy
Index
Constructors
constructor
Properties
cache
clear
Store
Callbacks
default
Options
dev
Tools
Hook
Cb
disable
Network
Fetches
link
local
State
query
Deduplication
query
Manager
reset
Store
Callbacks
type
Defs
version
Methods
__action
Hook
For
Dev
Tools
__request
Raw
add
Resolvers
clear
Store
extract
get
Observable
Queries
get
Resolvers
mutate
on
Clear
Store
on
Reset
Store
query
re
Fetch
Observable
Queries
read
Fragment
read
Query
refetch
Queries
reset
Store
restore
set
Link
set
Local
State
Fragment
Matcher
set
Resolvers
stop
subscribe
watch
Query
write
Fragment
write
Query
Constructors
constructor
new
Apollo
Client
<
TCacheShape
>
(
options
:
ApolloClientOptions
<
TCacheShape
>
)
:
ApolloClient
<
TCacheShape
>
Type Parameters
TCacheShape
Parameters
options:
ApolloClientOptions
<
TCacheShape
>
Returns
ApolloClient
<
TCacheShape
>
Properties
cache
cache
:
ApolloCache
<
TCacheShape
>
Private
clear
Store
Callbacks
clear
Store
Callbacks
:
any
default
Options
default
Options
:
DefaultOptions
Private
dev
Tools
Hook
Cb
dev
Tools
Hook
Cb
:
any
disable
Network
Fetches
disable
Network
Fetches
:
boolean
link
link
:
ApolloLink
Private
local
State
local
State
:
any
query
Deduplication
query
Deduplication
:
boolean
Private
query
Manager
query
Manager
:
any
Private
reset
Store
Callbacks
reset
Store
Callbacks
:
any
Readonly
type
Defs
type
Defs
:
undefined
|
string
|
string
[]
|
DocumentNode
|
DocumentNode
[]
version
version
:
string
Methods
__action
Hook
For
Dev
Tools
__action
Hook
For
Dev
Tools
(
cb
:
(
(
)
=>
any
)
)
:
void
Parameters
cb:
(
(
)
=>
any
)
(
)
:
any
Returns
any
Returns
void
__request
Raw
__request
Raw
(
payload
:
GraphQLRequest
)
:
Observable
<
ExecutionResult
<
ObjMap
<
unknown
>
,
ObjMap
<
unknown
>
>
>
Parameters
payload:
GraphQLRequest
Returns
Observable
<
ExecutionResult
<
ObjMap
<
unknown
>
,
ObjMap
<
unknown
>
>
>
add
Resolvers
add
Resolvers
(
resolvers
:
Resolvers
|
Resolvers
[]
)
:
void
Parameters
resolvers:
Resolvers
|
Resolvers
[]
Returns
void
clear
Store
clear
Store
(
)
:
internal
.
Promise
<
any
[]
>
Returns
internal
.
Promise
<
any
[]
>
extract
extract
(
optimistic
?:
boolean
)
:
TCacheShape
Parameters
Optional
optimistic:
boolean
Returns
TCacheShape
get
Observable
Queries
get
Observable
Queries
(
include
?:
RefetchQueriesInclude
)
:
internal
.
Map
<
string
,
ObservableQuery
<
any
,
OperationVariables
>
>
Parameters
Optional
include:
RefetchQueriesInclude
Returns
internal
.
Map
<
string
,
ObservableQuery
<
any
,
OperationVariables
>
>
get
Resolvers
get
Resolvers
(
)
:
Resolvers
Returns
Resolvers
mutate
mutate
<
TData
,
TVariables
,
TContext
,
TCache
>
(
options
:
MutationOptions
<
TData
,
TVariables
,
TContext
,
ApolloCache
<
any
>
>
)
:
internal
.
Promise
<
FetchResult
<
TData
,
Record
<
string
,
any
>
,
Record
<
string
,
any
>
>
>
Type Parameters
TData =
any
TVariables =
OperationVariables
TContext =
DefaultContext
TCache
extends
ApolloCache
<
any
,
TCache
>
=
ApolloCache
<
any
>
Parameters
options:
MutationOptions
<
TData
,
TVariables
,
TContext
,
ApolloCache
<
any
>
>
Returns
internal
.
Promise
<
FetchResult
<
TData
,
Record
<
string
,
any
>
,
Record
<
string
,
any
>
>
>
on
Clear
Store
on
Clear
Store
(
cb
:
(
(
)
=>
internal
.
Promise
<
any
>
)
)
:
(
(
)
=>
void
)
Parameters
cb:
(
(
)
=>
internal
.
Promise
<
any
>
)
(
)
:
internal
.
Promise
<
any
>
Returns
internal
.
Promise
<
any
>
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
on
Reset
Store
on
Reset
Store
(
cb
:
(
(
)
=>
internal
.
Promise
<
any
>
)
)
:
(
(
)
=>
void
)
Parameters
cb:
(
(
)
=>
internal
.
Promise
<
any
>
)
(
)
:
internal
.
Promise
<
any
>
Returns
internal
.
Promise
<
any
>
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
query
query
<
T
,
TVariables
>
(
options
:
QueryOptions
<
TVariables
,
T
>
)
:
internal
.
Promise
<
ApolloQueryResult
<
T
>
>
Type Parameters
T =
any
TVariables =
OperationVariables
Parameters
options:
QueryOptions
<
TVariables
,
T
>
Returns
internal
.
Promise
<
ApolloQueryResult
<
T
>
>
re
Fetch
Observable
Queries
re
Fetch
Observable
Queries
(
includeStandby
?:
boolean
)
:
internal
.
Promise
<
ApolloQueryResult
<
any
>
[]
>
Parameters
Optional
includeStandby:
boolean
Returns
internal
.
Promise
<
ApolloQueryResult
<
any
>
[]
>
read
Fragment
read
Fragment
<
T
,
TVariables
>
(
options
:
Fragment
<
TVariables
,
T
>
, optimistic
?:
boolean
)
:
null
|
T
Type Parameters
T =
any
TVariables =
OperationVariables
Parameters
options:
Fragment
<
TVariables
,
T
>
Optional
optimistic:
boolean
Returns
null
|
T
read
Query
read
Query
<
T
,
TVariables
>
(
options
:
internal
.
DataProxy
.
Query
<
TVariables
,
T
>
, optimistic
?:
boolean
)
:
null
|
T
Type Parameters
T =
any
TVariables =
OperationVariables
Parameters
options:
internal
.
DataProxy
.
Query
<
TVariables
,
T
>
Optional
optimistic:
boolean
Returns
null
|
T
refetch
Queries
refetch
Queries
<
TCache
,
TResult
>
(
options
:
RefetchQueriesOptions
<
TCache
,
TResult
>
)
:
RefetchQueriesResult
<
TResult
>
Type Parameters
TCache
extends
ApolloCache
<
any
,
TCache
>
=
ApolloCache
<
TCacheShape
>
TResult =
internal
.
Promise
<
ApolloQueryResult
<
any
>
>
Parameters
options:
RefetchQueriesOptions
<
TCache
,
TResult
>
Returns
RefetchQueriesResult
<
TResult
>
reset
Store
reset
Store
(
)
:
internal
.
Promise
<
null
|
ApolloQueryResult
<
any
>
[]
>
Returns
internal
.
Promise
<
null
|
ApolloQueryResult
<
any
>
[]
>
restore
restore
(
serializedState
:
TCacheShape
)
:
ApolloCache
<
TCacheShape
>
Parameters
serializedState:
TCacheShape
Returns
ApolloCache
<
TCacheShape
>
set
Link
set
Link
(
newLink
:
ApolloLink
)
:
void
Parameters
newLink:
ApolloLink
Returns
void
set
Local
State
Fragment
Matcher
set
Local
State
Fragment
Matcher
(
fragmentMatcher
:
FragmentMatcher
)
:
void
Parameters
fragmentMatcher:
FragmentMatcher
Returns
void
set
Resolvers
set
Resolvers
(
resolvers
:
Resolvers
|
Resolvers
[]
)
:
void
Parameters
resolvers:
Resolvers
|
Resolvers
[]
Returns
void
stop
stop
(
)
:
void
Returns
void
subscribe
subscribe
<
T
,
TVariables
>
(
options
:
SubscriptionOptions
<
TVariables
,
T
>
)
:
Observable
<
FetchResult
<
T
,
Record
<
string
,
any
>
,
Record
<
string
,
any
>
>
>
Type Parameters
T =
any
TVariables =
OperationVariables
Parameters
options:
SubscriptionOptions
<
TVariables
,
T
>
Returns
Observable
<
FetchResult
<
T
,
Record
<
string
,
any
>
,
Record
<
string
,
any
>
>
>
watch
Query
watch
Query
<
T
,
TVariables
>
(
options
:
WatchQueryOptions
<
TVariables
,
T
>
)
:
ObservableQuery
<
T
,
TVariables
>
Type Parameters
T =
any
TVariables =
OperationVariables
Parameters
options:
WatchQueryOptions
<
TVariables
,
T
>
Returns
ObservableQuery
<
T
,
TVariables
>
write
Fragment
write
Fragment
<
TData
,
TVariables
>
(
options
:
WriteFragmentOptions
<
TData
,
TVariables
>
)
:
void
Type Parameters
TData =
any
TVariables =
OperationVariables
Parameters
options:
WriteFragmentOptions
<
TData
,
TVariables
>
Returns
void
write
Query
write
Query
<
TData
,
TVariables
>
(
options
:
WriteQueryOptions
<
TData
,
TVariables
>
)
:
void
Type Parameters
TData =
any
TVariables =
OperationVariables
Parameters
options:
WriteQueryOptions
<
TData
,
TVariables
>
Returns
void
Modules
@injectivelabs/sdk-
ts
internal
Big
Number
Browser
Headers
Data
Proxy
global
This
@injectivelabs/wallet-
ts
Apollo
Client
constructor
cache
clear
Store
Callbacks
default
Options
dev
Tools
Hook
Cb
disable
Network
Fetches
link
local
State
query
Deduplication
query
Manager
reset
Store
Callbacks
type
Defs
version
__action
Hook
For
Dev
Tools
__request
Raw
add
Resolvers
clear
Store
extract
get
Observable
Queries
get
Resolvers
mutate
on
Clear
Store
on
Reset
Store
query
re
Fetch
Observable
Queries
read
Fragment
read
Query
refetch
Queries
reset
Store
restore
set
Link
set
Local
State
Fragment
Matcher
set
Resolvers
stop
subscribe
watch
Query
write
Fragment
write
Query
Generated using
TypeDoc