Advertisement
Guest User

Untitled

a guest
May 14th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1. import
  2. { [Function: model]
  3. hooks:
  4. Kareem {
  5. _pres: Map { 'save' => [Array], 'remove' => [Array] },
  6. _posts: Map { 'save' => [Array], 'init' => [Array] } },
  7. base:
  8. Mongoose {
  9. connections: [ [NativeConnection] ],
  10. models: { User: [Circular] },
  11. modelSchemas: { User: [Schema] },
  12. options: { pluralization: true },
  13. _pluralize: [Function: pluralize],
  14. Schema:
  15. { [Function: Schema] reserved: [Object], Types: [Object], ObjectId: [Function] },
  16. model: [Function],
  17. plugins: [ [Array], [Array], [Array], [Array] ] },
  18. modelName: 'User',
  19. model: [Function: model],
  20. db:
  21. NativeConnection {
  22. base:
  23. Mongoose {
  24. connections: [Array],
  25. models: [Object],
  26. modelSchemas: [Object],
  27. options: [Object],
  28. _pluralize: [Function: pluralize],
  29. Schema: [Function],
  30. model: [Function],
  31. plugins: [Array] },
  32. collections: { users: [NativeCollection] },
  33. models: { User: [Circular] },
  34. config: { autoIndex: true },
  35. replica: false,
  36. options: null,
  37. otherDbs: [],
  38. relatedDbs: {},
  39. states:
  40. [Object: null prototype] {
  41. '0': 'disconnected',
  42. '1': 'connected',
  43. '2': 'connecting',
  44. '3': 'disconnecting',
  45. '99': 'uninitialized',
  46. disconnected: 0,
  47. connected: 1,
  48. connecting: 2,
  49. disconnecting: 3,
  50. uninitialized: 99 },
  51. _readyState: 0,
  52. _closeCalled: false,
  53. _hasOpened: false,
  54. plugins: [],
  55. '$internalEmitter':
  56. EventEmitter {
  57. _events: [Object: null prototype] {},
  58. _eventsCount: 0,
  59. _maxListeners: 0 },
  60. _listening: false },
  61. discriminators: undefined,
  62. events:
  63. EventEmitter {
  64. _events: [Object: null prototype] {},
  65. _eventsCount: 0,
  66. _maxListeners: undefined },
  67. '$appliedMethods': true,
  68. '$appliedHooks': true,
  69. _middleware:
  70. Kareem {
  71. _pres: Map { 'save' => [Array], 'remove' => [Array] },
  72. _posts: Map { 'save' => [Array], 'init' => [Array] } },
  73. '$__insertMany': [Function],
  74. schema:
  75. Schema {
  76. obj:
  77. { email: [Object],
  78. password: [Object],
  79. firstName: [Object],
  80. lastName: [Object] },
  81. paths:
  82. { email: [SchemaString],
  83. password: [SchemaString],
  84. firstName: [SchemaString],
  85. lastName: [SchemaString],
  86. _id: [ObjectId],
  87. __v: [SchemaNumber] },
  88. aliases: {},
  89. subpaths: {},
  90. virtuals: { id: [VirtualType] },
  91. singleNestedPaths: {},
  92. nested: {},
  93. inherits: {},
  94. callQueue: [],
  95. _indexes: [],
  96. methods: {},
  97. methodOptions: {},
  98. statics: {},
  99. tree:
  100. { email: [Object],
  101. password: [Object],
  102. firstName: [Object],
  103. lastName: [Object],
  104. _id: [Object],
  105. __v: [Function: Number],
  106. id: [VirtualType] },
  107. query: {},
  108. childSchemas: [],
  109. plugins: [ [Object], [Object], [Object], [Object], [Object] ],
  110. '$id': 1,
  111. s: { hooks: [Kareem] },
  112. _userProvidedOptions: { toObject: [Object] },
  113. options:
  114. { typeKey: 'type',
  115. id: true,
  116. noVirtualId: false,
  117. _id: true,
  118. noId: false,
  119. validateBeforeSave: true,
  120. read: null,
  121. shardKey: null,
  122. autoIndex: null,
  123. minimize: true,
  124. discriminatorKey: '__t',
  125. versionKey: '__v',
  126. capped: false,
  127. bufferCommands: true,
  128. strict: true,
  129. toObject: [Object],
  130. pluralization: true },
  131. '$globalPluginsApplied': true,
  132. [Symbol(Mongoose.helpers.setParentPointers)]: true },
  133. collection:
  134. NativeCollection {
  135. collection: null,
  136. Promise: [Function: Promise],
  137. opts:
  138. { bufferCommands: true,
  139. capped: false,
  140. Promise: [Function: Promise],
  141. '$wasForceClosed': undefined },
  142. name: 'users',
  143. collectionName: 'users',
  144. conn:
  145. NativeConnection {
  146. base: [Mongoose],
  147. collections: [Object],
  148. models: [Object],
  149. config: [Object],
  150. replica: false,
  151. options: null,
  152. otherDbs: [],
  153. relatedDbs: {},
  154. states: [Object],
  155. _readyState: 0,
  156. _closeCalled: false,
  157. _hasOpened: false,
  158. plugins: [],
  159. '$internalEmitter': [EventEmitter],
  160. _listening: false },
  161. queue: [],
  162. buffer: true,
  163. emitter:
  164. EventEmitter {
  165. _events: [Object: null prototype] {},
  166. _eventsCount: 0,
  167. _maxListeners: undefined } },
  168. Query:
  169. { [Function]
  170. base:
  171. Query {
  172. toConstructor: [Function: toConstructor],
  173. setOptions: [Function],
  174. collection: [Function: collection],
  175. collation: [Function],
  176. '$where': [Function],
  177. where: [Function],
  178. equals: [Function: equals],
  179. eq: [Function: eq],
  180. or: [Function: or],
  181. nor: [Function: nor],
  182. and: [Function: and],
  183. gt: [Function],
  184. gte: [Function],
  185. lt: [Function],
  186. lte: [Function],
  187. ne: [Function],
  188. in: [Function],
  189. nin: [Function],
  190. all: [Function],
  191. regex: [Function],
  192. size: [Function],
  193. maxDistance: [Function],
  194. minDistance: [Function],
  195. mod: [Function],
  196. exists: [Function],
  197. elemMatch: [Function],
  198. within: [Function: within],
  199. box: [Function],
  200. polygon: [Function],
  201. circle: [Function],
  202. near: [Function: near],
  203. intersects: [Function: intersects],
  204. geometry: [Function: geometry],
  205. select: [Function: select],
  206. slice: [Function],
  207. sort: [Function],
  208. limit: [Function],
  209. skip: [Function],
  210. maxScan: [Function],
  211. batchSize: [Function],
  212. comment: [Function],
  213. maxTimeMS: [Function],
  214. maxTime: [Function],
  215. snapshot: [Function],
  216. hint: [Function],
  217. j: [Function: j],
  218. slaveOk: [Function],
  219. setReadPreference: [Function],
  220. read: [Function],
  221. r: [Function],
  222. readConcern: [Function],
  223. tailable: [Function],
  224. w: [Function: writeConcern],
  225. writeConcern: [Function: writeConcern],
  226. wTimeout: [Function: wtimeout],
  227. wtimeout: [Function: wtimeout],
  228. merge: [Function],
  229. find: [Function],
  230. cursor: [Function: cursor],
  231. findOne: [Function],
  232. count: [Function],
  233. distinct: [Function],
  234. update: [Function: update],
  235. updateMany: [Function: updateMany],
  236. updateOne: [Function: updateOne],
  237. replaceOne: [Function: replaceOne],
  238. remove: [Function],
  239. deleteOne: [Function],
  240. deleteMany: [Function],
  241. findOneAndUpdate: [Function],
  242. findOneAndDelete: [Function],
  243. findOneAndRemove: [Function],
  244. _findAndModify: [Function],
  245. _wrapCallback: [Function],
  246. setTraceFunction: [Function],
  247. exec: [Function: exec],
  248. thunk: [Function],
  249. then: [Function],
  250. stream: [Function],
  251. selected: [Function: selected],
  252. selectedInclusively: [Function: selectedInclusively],
  253. selectedExclusively: [Function: selectedExclusively],
  254. _mergeUpdate: [Function],
  255. _optionsForExec: [Function],
  256. _fieldsForExec: [Function],
  257. _updateForExec: [Function],
  258. _ensurePath: [Function],
  259. _validate: [Function] } },
  260. '$init': Promise { <pending> },
  261. '$caught': true,
  262. [Symbol(mongoose#Model)]: true }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement