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
LocalState
Class LocalState<TCacheShape>
Type Parameters
TCacheShape
Hierarchy
LocalState
Index
Constructors
constructor
Properties
build
Root
Value
From
Cache
cache
client
fragment
Matcher
resolve
Document
resolve
Field
resolve
Selection
Set
resolve
Sub
Selected
Array
resolvers
Methods
add
Exported
Variables
add
Resolvers
client
Query
get
Fragment
Matcher
get
Resolvers
prepare
Context
run
Resolvers
server
Query
set
Fragment
Matcher
set
Resolvers
should
Force
Resolvers
Constructors
constructor
new
Local
State
<
TCacheShape
>
(
__namedParameters
:
LocalStateOptions
<
TCacheShape
>
)
:
LocalState
<
TCacheShape
>
Type Parameters
TCacheShape
Parameters
__namedParameters:
LocalStateOptions
<
TCacheShape
>
Returns
LocalState
<
TCacheShape
>
Properties
Private
build
Root
Value
From
Cache
build
Root
Value
From
Cache
:
any
Private
cache
cache
:
any
Private
client
client
:
any
Private
fragment
Matcher
fragment
Matcher
:
any
Private
resolve
Document
resolve
Document
:
any
Private
resolve
Field
resolve
Field
:
any
Private
resolve
Selection
Set
resolve
Selection
Set
:
any
Private
resolve
Sub
Selected
Array
resolve
Sub
Selected
Array
:
any
Private
Optional
resolvers
resolvers
?:
any
Methods
add
Exported
Variables
add
Exported
Variables
(
document
:
DocumentNode
, variables
?:
OperationVariables
, context
?:
{}
)
:
internal
.
Promise
<
{}
>
Parameters
document:
DocumentNode
Optional
variables:
OperationVariables
Optional
context:
{}
Returns
internal
.
Promise
<
{}
>
add
Resolvers
add
Resolvers
(
resolvers
:
Resolvers
|
Resolvers
[]
)
:
void
Parameters
resolvers:
Resolvers
|
Resolvers
[]
Returns
void
client
Query
client
Query
(
document
:
DocumentNode
)
:
null
|
DocumentNode
Parameters
document:
DocumentNode
Returns
null
|
DocumentNode
get
Fragment
Matcher
get
Fragment
Matcher
(
)
:
FragmentMatcher
Returns
FragmentMatcher
get
Resolvers
get
Resolvers
(
)
:
Resolvers
Returns
Resolvers
prepare
Context
prepare
Context
(
context
?:
Record
<
string
,
any
>
)
:
{
cache
:
ApolloCache
<
TCacheShape
>
;
getCacheKey
:
any
}
Parameters
Optional
context:
Record
<
string
,
any
>
Returns
{
cache
:
ApolloCache
<
TCacheShape
>
;
getCacheKey
:
any
}
cache
:
ApolloCache
<
TCacheShape
>
get
Cache
Key
:
function
get
Cache
Key
(
obj
:
StoreObject
)
:
undefined
|
string
Parameters
obj:
StoreObject
Returns
undefined
|
string
run
Resolvers
run
Resolvers
<
TData
>
(
__namedParameters
:
{
context
?:
Record
<
string
,
any
>
;
document
:
null
|
DocumentNode
;
onlyRunForcedResolvers
?:
boolean
;
remoteResult
:
FetchResult
<
TData
,
Record
<
string
,
any
>
,
Record
<
string
,
any
>
>
;
variables
?:
Record
<
string
,
any
>
}
)
:
internal
.
Promise
<
FetchResult
<
TData
,
Record
<
string
,
any
>
,
Record
<
string
,
any
>
>
>
Type Parameters
TData
Parameters
__namedParameters:
{
context
?:
Record
<
string
,
any
>
;
document
:
null
|
DocumentNode
;
onlyRunForcedResolvers
?:
boolean
;
remoteResult
:
FetchResult
<
TData
,
Record
<
string
,
any
>
,
Record
<
string
,
any
>
>
;
variables
?:
Record
<
string
,
any
>
}
Optional
context
?:
Record
<
string
,
any
>
document
:
null
|
DocumentNode
Optional
only
Run
Forced
Resolvers
?:
boolean
remote
Result
:
FetchResult
<
TData
,
Record
<
string
,
any
>
,
Record
<
string
,
any
>
>
Optional
variables
?:
Record
<
string
,
any
>
Returns
internal
.
Promise
<
FetchResult
<
TData
,
Record
<
string
,
any
>
,
Record
<
string
,
any
>
>
>
server
Query
server
Query
(
document
:
DocumentNode
)
:
null
|
DocumentNode
Parameters
document:
DocumentNode
Returns
null
|
DocumentNode
set
Fragment
Matcher
set
Fragment
Matcher
(
fragmentMatcher
:
FragmentMatcher
)
:
void
Parameters
fragmentMatcher:
FragmentMatcher
Returns
void
set
Resolvers
set
Resolvers
(
resolvers
:
Resolvers
|
Resolvers
[]
)
:
void
Parameters
resolvers:
Resolvers
|
Resolvers
[]
Returns
void
should
Force
Resolvers
should
Force
Resolvers
(
document
:
ASTNode
)
:
boolean
Parameters
document:
ASTNode
Returns
boolean
Modules
@injectivelabs/sdk-
ts
internal
Big
Number
Browser
Headers
Data
Proxy
global
This
@injectivelabs/wallet-
ts
Local
State
constructor
build
Root
Value
From
Cache
cache
client
fragment
Matcher
resolve
Document
resolve
Field
resolve
Selection
Set
resolve
Sub
Selected
Array
resolvers
add
Exported
Variables
add
Resolvers
client
Query
get
Fragment
Matcher
get
Resolvers
prepare
Context
run
Resolvers
server
Query
set
Fragment
Matcher
set
Resolvers
should
Force
Resolvers
Generated using
TypeDoc