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
ApolloCache
Class ApolloCache<TSerialized>
Abstract
Type Parameters
TSerialized
Hierarchy
ApolloCache
Implements
DataProxy
Index
Constructors
constructor
Properties
get
Fragment
Doc
Methods
batch
diff
evict
extract
gc
identify
modify
perform
Transaction
read
read
Fragment
read
Query
record
Optimistic
Transaction
remove
Optimistic
reset
restore
transform
Document
transform
For
Link
update
Fragment
update
Query
watch
write
write
Fragment
write
Query
Constructors
constructor
new
Apollo
Cache
<
TSerialized
>
(
)
:
ApolloCache
<
TSerialized
>
Type Parameters
TSerialized
Returns
ApolloCache
<
TSerialized
>
Properties
Private
get
Fragment
Doc
get
Fragment
Doc
:
any
Methods
batch
batch
<
U
>
(
options
:
BatchOptions
<
ApolloCache
<
TSerialized
>
,
U
>
)
:
U
Type Parameters
U
Parameters
options:
BatchOptions
<
ApolloCache
<
TSerialized
>
,
U
>
Returns
U
Abstract
diff
diff
<
T
>
(
query
:
DiffOptions
<
any
,
any
>
)
:
DiffResult
<
T
>
Type Parameters
T
Parameters
query:
DiffOptions
<
any
,
any
>
Returns
DiffResult
<
T
>
Abstract
evict
evict
(
options
:
EvictOptions
)
:
boolean
Parameters
options:
EvictOptions
Returns
boolean
Abstract
extract
extract
(
optimistic
?:
boolean
)
:
TSerialized
Parameters
Optional
optimistic:
boolean
Returns
TSerialized
gc
gc
(
)
:
string
[]
Returns
string
[]
identify
identify
(
object
:
Reference
|
StoreObject
)
:
undefined
|
string
Parameters
object:
Reference
|
StoreObject
Returns
undefined
|
string
modify
modify
(
options
:
ModifyOptions
)
:
boolean
Parameters
options:
ModifyOptions
Returns
boolean
Abstract
perform
Transaction
perform
Transaction
(
transaction
:
Transaction
<
TSerialized
>
, optimisticId
?:
null
|
string
)
:
void
Parameters
transaction:
Transaction
<
TSerialized
>
Optional
optimisticId:
null
|
string
Returns
void
Abstract
read
read
<
TData
,
TVariables
>
(
query
:
ReadOptions
<
TVariables
,
TData
>
)
:
null
|
TData
Type Parameters
TData =
any
TVariables =
any
Parameters
query:
ReadOptions
<
TVariables
,
TData
>
Returns
null
|
TData
read
Fragment
read
Fragment
<
FragmentType
,
TVariables
>
(
options
:
ReadFragmentOptions
<
FragmentType
,
TVariables
>
, optimistic
?:
boolean
)
:
null
|
FragmentType
Type Parameters
FragmentType
TVariables =
any
Parameters
options:
ReadFragmentOptions
<
FragmentType
,
TVariables
>
Optional
optimistic:
boolean
Returns
null
|
FragmentType
read
Query
read
Query
<
QueryType
,
TVariables
>
(
options
:
ReadQueryOptions
<
QueryType
,
TVariables
>
, optimistic
?:
boolean
)
:
null
|
QueryType
Type Parameters
QueryType
TVariables =
any
Parameters
options:
ReadQueryOptions
<
QueryType
,
TVariables
>
Optional
optimistic:
boolean
Returns
null
|
QueryType
record
Optimistic
Transaction
record
Optimistic
Transaction
(
transaction
:
Transaction
<
TSerialized
>
, optimisticId
:
string
)
:
void
Parameters
transaction:
Transaction
<
TSerialized
>
optimisticId:
string
Returns
void
Abstract
remove
Optimistic
remove
Optimistic
(
id
:
string
)
:
void
Parameters
id:
string
Returns
void
Abstract
reset
reset
(
options
?:
ResetOptions
)
:
internal
.
Promise
<
void
>
Parameters
Optional
options:
ResetOptions
Returns
internal
.
Promise
<
void
>
Abstract
restore
restore
(
serializedState
:
TSerialized
)
:
ApolloCache
<
TSerialized
>
Parameters
serializedState:
TSerialized
Returns
ApolloCache
<
TSerialized
>
transform
Document
transform
Document
(
document
:
DocumentNode
)
:
DocumentNode
Parameters
document:
DocumentNode
Returns
DocumentNode
transform
For
Link
transform
For
Link
(
document
:
DocumentNode
)
:
DocumentNode
Parameters
document:
DocumentNode
Returns
DocumentNode
update
Fragment
update
Fragment
<
TData
,
TVariables
>
(
options
:
UpdateFragmentOptions
<
TData
,
TVariables
>
, update
:
(
(
data
:
null
|
TData
)
=>
null
|
void
|
TData
)
)
:
null
|
TData
Type Parameters
TData =
any
TVariables =
any
Parameters
options:
UpdateFragmentOptions
<
TData
,
TVariables
>
update:
(
(
data
:
null
|
TData
)
=>
null
|
void
|
TData
)
(
data
:
null
|
TData
)
:
null
|
void
|
TData
Parameters
data:
null
|
TData
Returns
null
|
void
|
TData
Returns
null
|
TData
update
Query
update
Query
<
TData
,
TVariables
>
(
options
:
UpdateQueryOptions
<
TData
,
TVariables
>
, update
:
(
(
data
:
null
|
TData
)
=>
null
|
void
|
TData
)
)
:
null
|
TData
Type Parameters
TData =
any
TVariables =
any
Parameters
options:
UpdateQueryOptions
<
TData
,
TVariables
>
update:
(
(
data
:
null
|
TData
)
=>
null
|
void
|
TData
)
(
data
:
null
|
TData
)
:
null
|
void
|
TData
Parameters
data:
null
|
TData
Returns
null
|
void
|
TData
Returns
null
|
TData
Abstract
watch
watch
<
TData
,
TVariables
>
(
watch
:
WatchOptions
<
TData
,
TVariables
>
)
:
(
(
)
=>
void
)
Type Parameters
TData =
any
TVariables =
any
Parameters
watch:
WatchOptions
<
TData
,
TVariables
>
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
Abstract
write
write
<
TData
,
TVariables
>
(
write
:
WriteOptions
<
TData
,
TVariables
>
)
:
undefined
|
Reference
Type Parameters
TData =
any
TVariables =
any
Parameters
write:
WriteOptions
<
TData
,
TVariables
>
Returns
undefined
|
Reference
write
Fragment
write
Fragment
<
TData
,
TVariables
>
(
__namedParameters
:
WriteFragmentOptions
<
TData
,
TVariables
>
)
:
undefined
|
Reference
Type Parameters
TData =
any
TVariables =
any
Parameters
__namedParameters:
WriteFragmentOptions
<
TData
,
TVariables
>
Returns
undefined
|
Reference
write
Query
write
Query
<
TData
,
TVariables
>
(
__namedParameters
:
WriteQueryOptions
<
TData
,
TVariables
>
)
:
undefined
|
Reference
Type Parameters
TData =
any
TVariables =
any
Parameters
__namedParameters:
WriteQueryOptions
<
TData
,
TVariables
>
Returns
undefined
|
Reference
Modules
@injectivelabs/sdk-
ts
internal
Big
Number
Browser
Headers
Data
Proxy
global
This
@injectivelabs/wallet-
ts
Apollo
Cache
constructor
get
Fragment
Doc
batch
diff
evict
extract
gc
identify
modify
perform
Transaction
read
read
Fragment
read
Query
record
Optimistic
Transaction
remove
Optimistic
reset
restore
transform
Document
transform
For
Link
update
Fragment
update
Query
watch
write
write
Fragment
write
Query
Generated using
TypeDoc