Introduction
User Guide
1.
Installation
2.
Getting started
3.
Add relation
4.
Add more relation
5.
Mannage relations
5.1.
addRelation function
5.2.
removeRelation function
5.3.
What is the relationship really?
6.
findOne and find functions
7.
aggregation functions
8.
findOneAndUpdate functions
9.
deleteOne functions
10.
insertMany functions
11.
Playground
12.
Request flow in Lesan
13.
Lesan vs GraphQL
14.
All the advantages of Lesan
Advanced Guide
15.
Implement an advanced project
15.1.
General description
15.2.
nx configuration
15.3.
Folder Structure
15.4.
Microservice or Monolithic
16.
Manage replica
Lesan Philosophy
17.
Receiving Data
17.1.
Previous methods and the main challenge
17.2.
Lesan's Solution For How To Communicate Between The Server And The Client
18.
Why noSQL?
19.
Queuing data changes
20.
CSR, SSR or SSG content
21.
Penetration Into Depths
22.
Microservice
22.1.
Lesan solution
Structures
23.
Schemas
23.1.
Pure Structure In Schema
24.
The InRelation Structure In Schema
25.
The structure of OutRelation in the schema
26.
The structure of embed in the schema
27.
The structure of Struct in the schema
28.
runServer (web server structure)
29.
Request processing
30.
Dynamic structure
31.
Static structure
API Reference
32.
lesan
32.1.
schemas
32.1.1.
schemaFns
32.1.1.1.
getSchemas
32.1.1.2.
getPureOfMainRelations
32.1.1.3.
getSchema
32.1.1.4.
getPureSchema
32.1.1.5.
getPureFromMainRelations
32.1.1.6.
getPureFromRelatedRelations
32.1.1.7.
createEmbedded
32.1.1.8.
createStruct
32.1.1.9.
getSchemasKeys
32.1.2.
mainRelationsFns
32.1.2.1.
getMainRelations
32.1.3.
relatedRelationFns
32.1.3.1.
getRelatedRelations
32.1.4.
pureFns
32.1.4.1.
addPureModel
32.1.4.2.
getPureModel
32.1.4.3.
getPureModelByNameAndKey
32.1.5.
relationFns
32.1.5.1.
getRelation
32.1.6.
selectStructFns
32.1.6.1.
fieldType
32.1.6.2.
decreaseIterate
32.1.6.3.
checkRelation
32.1.6.4.
selectStruct
32.2.
acts
32.2.1.
setAct
32.2.2.
getServiceKeys
32.2.3.
getActs
32.2.4.
getActsKeys
32.2.5.
getActKeys
32.2.6.
getAct
32.2.7.
getAtcsWithServices
32.2.8.
getMainActs
32.2.9.
getMainAct
32.2.10.
setService
32.2.11.
getService
32.3.
odm
32.3.1.
setDb
32.3.2.
getCollection
32.3.3.
newModel
32.3.3.1.
find
32.3.3.2.
findOne
32.3.3.3.
insertOne
32.3.3.4.
insertMany
32.3.3.5.
addRelation
32.3.3.6.
removeRelation
32.3.3.7.
findOneAndUpdate
32.3.3.8.
deleteOne
32.3.3.9.
aggregation
32.4.
contextFns
32.4.1.
getContextModel
32.4.2.
setContext
32.4.3.
addContext
32.4.4.
addContexts
32.4.5.
addReqToContext
32.4.6.
addHeaderToContext
32.4.7.
addBodyToContext
32.5.
runServer
32.6.
generateSchemTypes
33.
types
33.1.
Tshemas types
33.1.1.
IModel types
33.1.1.1.
TRelation
33.1.1.1.1.
RelationDataType
33.1.1.1.2.
RelationSortOrderType
33.1.1.1.3.
TRelatedRelation
33.1.1.2.
IMainRelation
33.1.1.3.
IRelatedRelation
33.1.2.
RelationType
33.1.3.
IPureFields
33.1.4.
CheckRelation
33.1.5.
Iterate
33.2.
Services types
33.2.1.
Acts types
33.2.1.1.
Act
33.2.1.1.1.
ActFn
33.2.1.1.1.1.
TLesanBody
33.2.1.1.1.1.1.
Details
33.2.2.
ActInp
33.3.
odm types
33.3.1.
TInsertRelations
33.3.1.1.
IRelationsFileds
33.3.2.
projection
33.4.
context types
33.4.1.
LesanContenxt
Light
Rust
Coal
Navy
Ayu
Lesan
IRelationsFileds
interface IRelationsFileds { [key: string]: TRelation; }
Types
TRelation