Search
Preparing search index...
The search index is not available
graphql-paper
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
graphql-paper
Paper
Class Paper<UserOperations>
Type parameters
UserOperations
:
OperationMap
=
OperationMap
Hierarchy
Paper
Index
Constructors
constructor
Properties
current
events
history
hooks
mutate
Queue
operations
source
GraphQLSchema
validators
Accessors
data
Methods
clear
dispatch
Events
find
mutate
validate
Constructors
constructor
new
Paper<UserOperations>
(
graphqlSchema
:
string
|
GraphQLSchema
|
DocumentNode
, options
?:
{
operations
?:
UserOperations
}
)
:
Paper
<
UserOperations
>
Type parameters
UserOperations
:
OperationMap
=
OperationMap
Parameters
graphqlSchema:
string
|
GraphQLSchema
|
DocumentNode
Optional
options:
{
operations
?:
UserOperations
}
Optional
operations
?:
UserOperations
Returns
Paper
<
UserOperations
>
Properties
Protected
current
current
:
DocumentStore
<
string
>
events
events
:
EventTarget
= ...
Protected
history
history
:
DocumentStore
<
string
>
[]
= []
hooks
hooks
:
HooksMap
<
operations
&
OperationMap
&
UserOperations
>
= ...
Protected
mutate
Queue
mutate
Queue
:
Queue
= ...
operations
operations
:
operations
&
UserOperations
Protected
source
GraphQLSchema
source
GraphQLSchema
:
GraphQLSchema
validators
validators
:
{
document
:
DocumentTypeValidator
[]
;
field
:
FieldValidator
[]
}
= ...
Type declaration
document
:
DocumentTypeValidator
[]
field
:
FieldValidator
[]
Accessors
data
get
data
(
)
:
DocumentStore
<
string
>
Returns
DocumentStore
<
string
>
Methods
clear
clear
(
)
:
void
Returns
void
Private
dispatch
Events
dispatch
Events
(
events
:
Event
[]
)
:
void
Parameters
events:
Event
[]
Returns
void
find
find
(
documentOrKey
:
KeyOrDocument
)
:
undefined
|
Document
Parameters
documentOrKey:
KeyOrDocument
Returns
undefined
|
Document
mutate
mutate<T>
(
fn
:
T
)
:
Promise
<
ReturnType
<
T
>
>
Type parameters
T
:
TransactionCallback
<
operations
&
OperationMap
&
UserOperations
,
T
>
Parameters
fn:
T
Returns
Promise
<
ReturnType
<
T
>
>
Private
validate
validate
(
_store
?:
DocumentStore
<
string
>
)
:
void
Parameters
Optional
_store:
DocumentStore
<
string
>
Returns
void
Exports
Paper
constructor
current
events
history
hooks
mutate
Queue
operations
source
GraphQLSchema
validators
data
clear
dispatch
Events
find
mutate
validate
Generated using
TypeDoc