Advertisement
Guest User

Untitled

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