Search
Preparing search index...
The search index is not available
gracl
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"builtins/MemoryRepository"
MemoryRepository
Class MemoryRepository
Trivial in memory repository for example / testing
Hierarchy
MemoryRepository
Implements
Repository
Index
Constructors
constructor
Properties
data
Methods
get
Entity
save
Entity
Constructors
constructor
new
Memory
Repository
(
data
?:
object
)
:
MemoryRepository
Parameters
Default value
data:
object
= {}
Returns
MemoryRepository
Properties
Private
data
data
:
object
Type declaration
[
key:
string
]:
any
Methods
get
Entity
get
Entity
(
id
:
any
, node
?:
Node
)
:
Promise
<
Document
>
Parameters
id:
any
Optional
node:
Node
Returns
Promise
<
Document
>
save
Entity
save
Entity
(
id
:
any
, doc
:
Document
, node
?:
Node
)
:
Promise
<
Document
>
Parameters
id:
any
doc:
Document
Optional
node:
Node
Returns
Promise
<
Document
>
Globals
"builtins/
Memory
Repository"
"classes/
Graph"
"classes/
Node"
"classes/
Resource"
"classes/
Subject"
"gracl"
"interfaces"
"util"
Memory
Repository
constructor
data
get
Entity
save
Entity
Generated using
TypeDoc
Trivial in memory repository for example / testing