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

Lesan

generateSchemTypes functions