Skip to content

Instantly share code, notes, and snippets.

@andream16
Created August 17, 2016 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andream16/1852e3c87eba610020ddf0d107b90191 to your computer and use it in GitHub Desktop.
Save andream16/1852e3c87eba610020ddf0d107b90191 to your computer and use it in GitHub Desktop.
Query {
_mongooseOptions: {},
mongooseCollection:
NativeCollection {
collection: { s: [Object] },
opts: { bufferCommands: true, capped: false },
name: 'linestrings',
collectionName: 'linestrings',
conn:
NativeConnection {
base: [Object],
collections: [Object],
models: [Object],
config: [Object],
replica: false,
hosts: null,
host: 'localhost',
port: 27017,
user: undefined,
pass: undefined,
name: 'MeanMapApp',
options: [Object],
otherDbs: [],
_readyState: 1,
_closeCalled: false,
_hasOpened: true,
_listening: true,
db: [Object] },
queue: [],
buffer: false },
model:
{ [Function: model]
hooks: Kareem { _pres: {}, _posts: {} },
base:
Mongoose {
connections: [Object],
plugins: [],
models: [Object],
modelSchemas: [Object],
options: [Object] },
modelName: 'linestrings',
model: [Function: model],
db:
NativeConnection {
base: [Object],
collections: [Object],
models: [Object],
config: [Object],
replica: false,
hosts: null,
host: 'localhost',
port: 27017,
user: undefined,
pass: undefined,
name: 'MeanMapApp',
options: [Object],
otherDbs: [],
_readyState: 1,
_closeCalled: false,
_hasOpened: true,
_listening: true,
db: [Object] },
discriminators: undefined,
schema:
Schema {
paths: [Object],
subpaths: {},
virtuals: [Object],
nested: [Object],
inherits: {},
callQueue: [Object],
_indexes: [Object],
methods: {},
statics: {},
tree: [Object],
_requiredpaths: [Object],
discriminatorMapping: undefined,
_indexedpaths: [Object],
s: [Object],
options: [Object] },
collection:
NativeCollection {
collection: [Object],
opts: [Object],
name: 'linestrings',
collectionName: 'linestrings',
conn: [Object],
queue: [],
buffer: false } },
schema:
Schema {
paths:
{ name: [Object],
'geo.type': [Object],
'geo.coordinates': [Object],
created_at: [Object],
updated_at: [Object],
_id: [Object],
__v: [Object] },
subpaths: {},
virtuals: { id: [Object] },
nested: { geo: true },
inherits: {},
callQueue: [ [Object], [Object], [Object] ],
_indexes: [ [Object] ],
methods: {},
statics: {},
tree:
{ name: [Object],
geo: [Object],
created_at: [Object],
updated_at: [Object],
_id: [Object],
id: [Object],
__v: [Function: Number] },
_requiredpaths: [ 'name' ],
discriminatorMapping: undefined,
_indexedpaths: [ [Object] ],
s: { hooks: [Object], queryHooks: [Object] },
options:
{ id: true,
noVirtualId: false,
_id: true,
noId: false,
validateBeforeSave: true,
read: null,
shardKey: null,
autoIndex: null,
minimize: true,
discriminatorKey: '__t',
versionKey: '__v',
capped: false,
bufferCommands: true,
strict: true,
pluralization: true } },
op: 'find',
options: {},
_conditions: { geo: { '$geoIntersects': [Object] } },
_fields: undefined,
_update: undefined,
_path: undefined,
_distinct: undefined,
_collection:
NodeCollection {
collection:
NativeCollection {
collection: [Object],
opts: [Object],
name: 'linestrings',
collectionName: 'linestrings',
conn: [Object],
queue: [],
buffer: false },
collectionName: 'linestrings' },
_traceFunction: undefined,
_castError: null,
_count: [Function],
_execUpdate: [Function],
_find: [Function],
_findOne: [Function],
_findOneAndRemove: [Function],
_findOneAndUpdate: [Function] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment