Guest User

MongooseSchemaNotRegisteredError

a guest
Aug 11th, 2017
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. NativeConnection {
  2. base:
  3. Mongoose {
  4. connections: [ [Circular] ],
  5. models:
  6. { User: [Object],
  7. ProjectInputs: [Object],
  8. Values: [Object],
  9. Project: [Object] },
  10. modelSchemas:
  11. { User: [Object],
  12. ProjectInputs: [Object],
  13. Values: [Object],
  14. Project: [Object] },
  15. options: { pluralization: true },
  16. plugins: [ [Array], [Array], [Array] ] },
  17. collections:
  18. { users:
  19. NativeCollection {
  20. collection: [Object],
  21. opts: [Object],
  22. name: 'users',
  23. collectionName: 'users',
  24. conn: [Circular],
  25. queue: [],
  26. buffer: false,
  27. emitter: [Object] },
  28. projectinputs:
  29. NativeCollection {
  30. collection: [Object],
  31. opts: [Object],
  32. name: 'projectinputs',
  33. collectionName: 'projectinputs',
  34. conn: [Circular],
  35. queue: [],
  36. buffer: false,
  37. emitter: [Object] },
  38. values:
  39. NativeCollection {
  40. collection: [Object],
  41. opts: [Object],
  42. name: 'values',
  43. collectionName: 'values',
  44. conn: [Circular],
  45. queue: [],
  46. buffer: false,
  47. emitter: [Object] },
  48. projects:
  49. NativeCollection {
  50. collection: [Object],
  51. opts: [Object],
  52. name: 'projects',
  53. collectionName: 'projects',
  54. conn: [Circular],
  55. queue: [],
  56. buffer: false,
  57. emitter: [Object] } },
  58. models:
  59. { User:
  60. { [Function: model]
  61. hooks: [Object],
  62. base: [Object],
  63. modelName: 'User',
  64. model: [Function: model],
  65. db: [Circular],
  66. discriminators: undefined,
  67. '$appliedHooks': true,
  68. _events: [Object],
  69. _eventsCount: 2,
  70. schema: [Object],
  71. collection: [Object],
  72. Query: [Object],
  73. '$__insertMany': [Function],
  74. insertMany: [Function],
  75. empty: [Function] },
  76. ProjectInputs:
  77. { [Function: model]
  78. hooks: [Object],
  79. base: [Object],
  80. modelName: 'ProjectInputs',
  81. model: [Function: model],
  82. db: [Circular],
  83. discriminators: undefined,
  84. '$appliedHooks': true,
  85. _events: [Object],
  86. _eventsCount: 2,
  87. schema: [Object],
  88. collection: [Object],
  89. Query: [Object],
  90. '$__insertMany': [Function],
  91. insertMany: [Function] },
  92. Values:
  93. { [Function: model]
  94. hooks: [Object],
  95. base: [Object],
  96. modelName: 'Values',
  97. model: [Function: model],
  98. db: [Circular],
  99. discriminators: undefined,
  100. '$appliedHooks': true,
  101. _events: [Object],
  102. _eventsCount: 2,
  103. schema: [Object],
  104. collection: [Object],
  105. Query: [Object],
  106. '$__insertMany': [Function],
  107. insertMany: [Function] },
  108. Project:
  109. { [Function: model]
  110. hooks: [Object],
  111. base: [Object],
  112. modelName: 'Project',
  113. model: [Function: model],
  114. db: [Circular],
  115. discriminators: undefined,
  116. '$appliedHooks': true,
  117. _events: [Object],
  118. _eventsCount: 2,
  119. schema: [Object],
  120. collection: [Object],
  121. Query: [Object],
  122. '$__insertMany': [Function],
  123. insertMany: [Function] } },
  124. config: { autoIndex: true },
  125. replica: false,
  126. hosts: null,
  127. host: 'localhost',
  128. port: 27017,
  129. user: undefined,
  130. pass: undefined,
  131. name: 'ventcalc',
  132. options:
  133. { db: { forceServerObjectId: false, w: 1 },
  134. auth: {},
  135. server: { socketOptions: {}, auto_reconnect: true },
  136. replset: { socketOptions: {} },
  137. mongos: undefined },
  138. otherDbs: [],
  139. _readyState: 1,
  140. _closeCalled: false,
  141. _hasOpened: true,
  142. _listening: false,
  143. db:
  144. Db {
  145. domain: null,
  146. _events:
  147. { close: [Function],
  148. error: [Function],
  149. reconnect: [Function],
  150. timeout: [Function],
  151. open: [Function],
  152. parseError: [Function] },
  153. _eventsCount: 6,
  154. _maxListeners: undefined,
  155. s:
  156. { databaseName: 'ventcalc',
  157. dbCache: {},
  158. children: [],
  159. topology: [Object],
  160. options: [Object],
  161. logger: [Object],
  162. bson: BSON {},
  163. authSource: undefined,
  164. readPreference: undefined,
  165. bufferMaxEntries: -1,
  166. parentDb: null,
  167. pkFactory: undefined,
  168. nativeParser: undefined,
  169. promiseLibrary: [Function: Promise],
  170. noListener: false,
  171. readConcern: undefined },
  172. serverConfig: [Getter],
  173. bufferMaxEntries: [Getter],
  174. databaseName: [Getter],
  175. _listening: true },
  176. _events: { connected: [Function], error: [Function] },
  177. _eventsCount: 2 }
Advertisement
Add Comment
Please, Sign In to add comment