I have the problem that when I make a post request to my schema it does not store the new values in the episodes array.
Using postman in the body I added the new data, I mean new anime content, but that content is not added to the array of episodes. In total there are 25 episodes but with the new content it is supposed to increase to 26.
Any help will be appreciated.
This is my body in POSTMAN
"url": "https: \ / \ / www.crunchyroll.com \ / 07-ghost \ / episode-26-the-heart-is-lead-by-the-truth-on-the-othe-side-578512 ",
"description": "Teito uses the power of the Eye of Mikhail to summon Frau, Castor, Labrador, Lance, and the Black Hawks.",
"episode_number": "26",
"thumbnail": "https: \ / \ / www.facebook.com \ / tr? id = 2107366626037622 & ev = PageView & noscript = 1",
"name": "07 Ghost Episode 26"
}
Schema
"episodes": {
"1x": {
"07 Ghost": [{
"url": "https:\/\/www.crunchyroll.com\/07-ghost\/episode-25-the-heart-is-lead-by-the-truth-on-the-other-side-578512",
"description": "Teito uses the power of the Eye of Mikhail to summon Frau, Castor, Labrador, Lance, and the Black Hawks.",
"episode_number": "25",
"thumbnail": "https:\/\/www.facebook.com\/tr?id=2107366626037622&ev=PageView&noscript=1",
"name": "07 Ghost Episode 25"
},
POST REQUEST
// Update the "Episodes" array in the DB when a JSON is sent via "POST" request.
router.post('/series/:id/post' , (req , res , next) =>{
let id = req.params.id;
SeriesModel.findOneAndUpdate({
_id: new ObjectID(id)
},{
$push: {
"episodes.${'1x'}.${'07 Ghost'}": {
"url": req.body.url,
"description": req.body.description,
"episode_number": req.body.episode_number,
"thumbnail": req.body.thumbnail,
"name": req.body.name,
}
}
},
{new: true}, (err, result) => {
if(err){
console.error('error to update episodes')
}else{
console.log("episode section updated" , result)
}
}).then(result =>{
console.log(result);
res.status(200).json({
message: "Handling POST request to episodes",
episode: result
})
}).catch(err =>{
res.status(500).json({error: err})
})
})
This is the output after POST REQUEST in the terminal
POST /api/v1/animes/series/5d454473084e0306452caa12/post 200 929.910 ms - 19844
[nodemon] restarting due to changes...
[nodemon] starting `node src/index.js`
�🚀 Listening: http://localhost:8081
episode section updated { aggregateRating:
{ reviewCount: 100,
ratingCount: 1387,
'#type': 'AggregateRating',
ratingValue: 4.7 },
episodes: { '1x': { '07 Ghost': [Array] } },
metadata:
{ description:
'Teased unmercifully for his past as an orphan and a slave, Teito has only his best friend Mikage and his mastery of the magical art of Zaiphon to ease his days at the elite Barsburg Academy.',
url: 'http://www.crunchyroll.com/07-ghost',
image:
'https://img1.ak.crunchyroll.com/i/spire4/1d3f1855ba933617b4d6792d9d3154191300831088_full.jpg',
type: 'TVSeries',
id: 'http://www.crunchyroll.com/07-ghost',
name: '07 Ghost' },
'1x':
{ '07 Ghost':
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ] },
_id: 5d454473084e0306452caa12,
series_id: 'GYWE4X28Y',
__v: 0 }
POST /api/v1/animes/series/5d454473084e0306452caa12/post 200 740.518 ms - 19844
[nodemon] restarting due to changes...
[nodemon] starting `node src/index.js`
�🚀 Listening: http://localhost:8081
episode section updated { aggregateRating:
{ reviewCount: 100,
ratingCount: 1387,
'#type': 'AggregateRating',
ratingValue: 4.7 },
episodes: { '1x': { '07 Ghost': [Array] } },
metadata:
{ description:
'Teased unmercifully for his past as an orphan and a slave, Teito has only his best friend Mikage and his mastery of the magical art of Zaiphon to ease his days at the elite Barsburg Academy.',
url: 'http://www.crunchyroll.com/07-ghost',
image:
'https://img1.ak.crunchyroll.com/i/spire4/1d3f1855ba933617b4d6792d9d3154191300831088_full.jpg',
type: 'TVSeries',
id: 'http://www.crunchyroll.com/07-ghost',
name: '07 Ghost' },
'1x':
{ '07 Ghost':
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ] },
_id: 5d454473084e0306452caa12,
series_id: 'GYWE4X28Y',
__v: 0 }
According to postman the update was successful
"message": "Handling POST request to episodes"
You can see in the episode arrangement, continue with the 25 episodes and not with 26 that is supposed to happen.
Related
I am working with treemodel to create a tree representation
When I try to stringify it using json, or to string, I get an error of course.
What is the best way to stringify this tree model?
Here is example of my output
config:
{ childrenPropertyName: 'children',
modelComparatorFn: undefined },
model:
{ name: 0,
content:
{ questions: [Array],
results: [],
varName: 'Step #1',
attributes: [Array],
type: 'default',
contentElements: [] },
children:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ] },
children:
[ Node {
config: [Object],
model: [Object],
children: [],
parent: [Circular] },
I have a datamodel named 'account' that stores a 'user'
var mongoose=require("mongoose");
mongoose.connect("mongodb://localhost/dataseed");
var db=mongoose.connection;
var accountSchema=mongoose.Schema({
user:{
type:mongoose.Schema.Types.ObjectId,
ref:"user"
},
accountholder:{
type:String
},
cvv:{
type:String
},
expiryyear:{
type:String
},
expirymonth:{
type:String
},
accountnumber:{
type:Number
},
currentamount:{
type:Number
},
transferedamount:{
type:Number
},
withdrawnamount:{
type:Number
}
});
var account = module.exports = mongoose.model('account', accountSchema);
When I'm trying to found an account using the account.find() function. However it returns undefined when I try to access account.accountnumber
I'm querying my model as follows:
data.findById({"_id":req.params.id},function(err,data){
console.log("DATA.USER --------------------------------------------------");
console.log(data.user);
if(err)console.log(err);
else{
acessToken.create({user:req.user,data:req.params.id,token:token},function(err,acess){
if(err)console.log(err);
else{
console.log("ACCESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSss");
console.log(acess.user);
transporter.sendMail(mailOptions, function(error, info){
if (error) {
console.log(error);
}
else
{
console.log("------------------------------------------------------------------------------------TYPE OF USER ID: " + typeof(req.user._id));
account.find({"user":req.user},function(err,d){
if(err)console.log(err)
var amount=d.currentamount-data.price;
var transferedamount=d.transferedamount+data.price;
console.log("Amount: "+amount); // NaN
account.findByIdAndUpdate({user:req.user},{currentamount:amount,transferedamount:transferedamount},function(err,update){
if(err)console.log(err);
console.log('Email sent: ' + info.response);
//getUsername of seller
// console.log(data.user)
user.findById({"_id":data.user},function(err,seller){
if(err){
console.log(err);
}else{
var buyer = req.user.username;
var seller = seller.username;
var priceOfData = data.price;
//ccNumber undefined
var ccnumber = d.accountnumber;
console.log("Buyer Name " +buyer);
console.log("Seller Name " +seller);
console.log("Price " +priceOfData);
console.log("Purchased on Credit Card Number " +ccnumber);
res.render('buyer/sold.ejs');
}
});
});
});
}
});
}
});
}
});
Models "data" and "acessToken" are used for finding a product and generating an access token of the purchased product.
This is the output im getting on my console.
5ca9ae4c044bab18588edf5b
ACCESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSss
5cd4cc83c3c65514c61ae4f3
------------------------------------------------------------------------------------TYPE OF USER ID: object
Amount: NaN
{ CastError: Cast to ObjectId failed for value "{ user: 5cd4cc83c3c65514c61ae4f3 }" at path "_id" for model "account"
at MongooseError.CastError (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/error/cast.js:29:11)
at ObjectId.cast (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/schema/objectid.js:232:11)
at ObjectId.SchemaType.applySetters (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/schematype.js:845:12)
at ObjectId.SchemaType._castForQuery (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/schematype.js:1248:15)
at ObjectId.SchemaType.castForQuery (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/schematype.js:1238:15)
at ObjectId.SchemaType.castForQueryWrapper (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/schematype.js:1217:15)
at cast (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/cast.js:252:34)
at Query.cast (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/query.js:4334:12)
at castQuery (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/query.js:4186:18)
at Query._findAndModify (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/query.js:3203:23)
at Query.<anonymous> (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/query.js:2830:8)
at Query._wrappedThunk [as _findOneAndUpdate] (/home/ubuntu/workspace/DataSeed/node_modules/mongoose/lib/helpers/query/wrapThunk.js:16:8)
at process.nextTick (/home/ubuntu/workspace/DataSeed/node_modules/kareem/index.js:369:33)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
message: 'Cast to ObjectId failed for value "{ user: 5cd4cc83c3c65514c61ae4f3 }" at path "_id" for model "account"',
name: 'CastError',
stringValue: '"{ user: 5cd4cc83c3c65514c61ae4f3 }"',
kind: 'ObjectId',
value: { user: 5cd4cc83c3c65514c61ae4f3 },
path: '_id',
reason: undefined,
model:
{ [Function: model]
hooks: Kareem { _pres: [Object], _posts: [Object] },
base:
Mongoose {
connections: [Object],
models: [Object],
modelSchemas: [Object],
options: [Object],
_pluralize: [Function: pluralize],
Schema: [Object],
model: [Function],
plugins: [Object] },
modelName: 'account',
model: [Function: model],
db:
NativeConnection {
base: [Object],
collections: [Object],
models: [Object],
config: [Object],
replica: false,
options: null,
otherDbs: [],
relatedDbs: {},
states: [Object],
_readyState: 1,
_closeCalled: false,
_hasOpened: true,
'$internalEmitter': [Object],
_listening: false,
_events: [Object],
_eventsCount: 1,
_connectionOptions: [Object],
name: 'dataseed',
host: 'localhost',
port: 27017,
user: undefined,
pass: undefined,
client: [Object],
'$initialConnection': [Object],
db: [Object] },
discriminators: undefined,
events:
EventEmitter {
domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined },
'$appliedMethods': true,
'$appliedHooks': true,
_middleware: Kareem { _pres: [Object], _posts: [Object] },
schema:
Schema {
obj: [Object],
paths: [Object],
aliases: {},
subpaths: {},
virtuals: [Object],
singleNestedPaths: {},
nested: {},
inherits: {},
callQueue: [],
_indexes: [],
methods: {},
methodOptions: {},
statics: {},
tree: [Object],
query: {},
childSchemas: [],
plugins: [Object],
'$id': 7,
s: [Object],
_userProvidedOptions: {},
options: [Object],
'$globalPluginsApplied': true,
_requiredpaths: [] },
collection:
NativeCollection {
collection: [Object],
opts: [Object],
name: 'accounts',
collectionName: 'accounts',
conn: [Object],
queue: [],
buffer: false,
emitter: [Object] },
Query: { [Function] base: [Object] },
'$__insertMany': [Function],
'$init': Promise { [Object] },
'$caught': true } }
Email sent: 250 2.0.0 OK 1557500841 d4sm5108746wrv.42 - gsmtp
Buyer Name murtaza1
Seller Name test1
Price 100
Purchased on Credit Card Number undefined
The problem with your code is that when you query your database you also need to call the populate method exposed by MongoDB and in particular Mongoose which I'm assuming you're using to query the DB. More info on Mongoose docs.
Why this happens? Well, since you're declaring using as a reference to your account Schema when Mongoose query the DB it only returns, without the populate method, the ID of the document referenced by that particular account Schema. Hope this helps you, cheers, sigfried
The bootcamp I went to taught postgres using the knex/bookshelf libraries, but at the moment I don't know how to use the reqular queries(ie. SELECT FROM etc...).
I've haven't tried a relational query with the knex/bookshelf libraries until now and I can't get it to work. I've looked at the documentation and as far as I can tell I've used the syntax they say to.
exports.getStudentsByClass = (key) => {
return Classroom.where({ id: key }).fetch({
withRelated: 'student'
})
.then(classroom => {
const students = classroom.related('student')
console.log(classroom.models.map(student => {
studentList.attributes
}))
return classroom
})
.catch(err => {
console.log(err)
})
}
This is the function I am using to query the database. When I console log the data this is what I get
CollectionBase {
model:
{ [Function]
super_: [Function: Events],
extend: [Function: extend],
extended: [Function: extended],
__super__:
ModelBase {
_builder: [Function: builderFn],
_relation: [Function: _relation],
Collection: [Object] },
NotFoundError: [Function: ErrorCtor],
NoRowsUpdatedError: [Function: ErrorCtor],
NoRowsDeletedError: [Function: ErrorCtor],
forge: [Function: forge],
collection: [Function: collection],
count: [Function: count],
fetchAll: [Function: fetchAll],
where: [Function],
query: [Function] },
length: 5,
models:
[ ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c77',
id: 7 },
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c78',
id: 4 },
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c79',
id: 9 },
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c80',
id: 14 },
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c81',
id: 10 } ],
_byId:
{ '4':
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c78',
id: 4 },
'7':
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c77',
id: 7 },
'9':
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c79',
id: 9 },
'10':
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c81',
id: 10 },
'14':
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c80',
id: 14 },
c77:
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c77',
id: 7 },
c78:
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c78',
id: 4 },
c79:
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c79',
id: 9 },
c80:
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c80',
id: 14 },
c81:
ModelBase {
attributes: [Object],
_previousAttributes: [Object],
changed: {},
relations: {},
cid: 'c81',
id: 10 } },
relatedData:
RelationBase {
targetTableName: 'student',
targetIdAttribute: 'id',
type: 'hasMany',
target:
{ [Function]
super_: [Function: Events],
extend: [Function: extend],
extended: [Function: extended],
__super__: [Object],
NotFoundError: [Function: ErrorCtor],
NoRowsUpdatedError: [Function: ErrorCtor],
NoRowsDeletedError: [Function: ErrorCtor],
forge: [Function: forge],
collection: [Function: collection],
count: [Function: count],
fetchAll: [Function: fetchAll],
where: [Function],
query: [Function] },
foreignKey: 'classroom_id',
foreignKeyTarget: undefined,
parentId: 6,
parentTableName: 'classroom',
parentIdAttribute: 'id',
parentAttributes:
{ id: 6,
created_at: 2018-04-24T22:23:34.819Z,
updated_at: 2018-04-24T22:23:34.819Z,
name: ' Classroom 1' },
parentFk: 6 } }
So I'm not sure how to make this work
I am trying to gain visibility of a collection called cronHistory (part of https://github.com/percolatestudio/meteor-synced-cron which appears to be functioning fine).
In the meteor shell (server side), I can see the collection exists in amongst the others e.g. my events collection:
> Meteor.Collection.getAll()
[{ name: 'events',
instance:
{ _makeNewID: [Function],
_transform: null,
_connection: [Object],
_collection: [Object],
_name: 'events',
_driver: [Object],
_restricted: true,
_insecure: undefined,
_validators: [Object],
_prefix: '/events/',
before: [Object],
_hookAspects: [Object],
after: [Object],
hookOptions: [Object],
direct: [Object],
_c2: [Object] },
options: undefined },
...
{ name: 'cronHistory',
instance:
{ _makeNewID: [Function],
_transform: null,
_connection: [Object],
_collection: [Object],
_name: 'cronHistory',
_driver: [Object],
_restricted: false,
_insecure: undefined,
_validators: [Object],
_prefix: '/cronHistory/',
before: [Object],
_hookAspects: [Object],
after: [Object],
hookOptions: [Object],
direct: [Object] },
options: undefined } ]
But I can't access it from the shell (or elsewhere):
> cronHistory.findOne()
ReferenceError: cronHistory is not defined
at [object Object]:1:-61
at Script.(anonymous function) [as runInThisContext] (vm.js:41:22)
at /Users/technical/code/mssc/.meteor/local/build/programs/server/shell-server.js:305:27
at /Users/technical/.meteor/packages/meteor-tool/.1.1.10.1vct6fi++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/meteor-promise/fiber_pool.js:33:40
Which is not true of other collections:
> FutureNotifications.findOne()
{ _id: 'btX6XGnXtaCkaEBzB' }
> Events.findOne()
{ _id: 'r3sw6kw9M8fPXGmvd',
name: 'rstierstnrstrst',
location: 'rein',
How can I access it? Thanks!
Packages are stored in the global Package array. You can access package internals in Meteor shell using Package["percolate:synced-cron"].
After digging a minute in the source code, this is probably what you want:
Package["percolate:synced-cron"].SyncedCron._collection.findOne();
Please note that you can access Package in the browser console just as well, it stores client-side packages then. Obviosly, you should only this for debugging purposes.
I absolutely can't think what to Google for this one. It happens when I start meteor up from the command line.
I get a load of output that I don't recognise, and it's a bit annoying because it obscures the output that I want to see. I can't pinpoint the change that made this happen.
I thought I'd observed it happening after DB queries were made too, however I can't see that this morning.
I20150707-10:26:06.097(1)? ----------------------------
I20150707-10:26:06.101(1)? { _mongo:
I20150707-10:26:06.101(1)? { _observeMultiplexers:
I20150707-10:26:06.101(1)? { '{"ordered":false,"collectionName":"users","selector":{"_id":"bhJwk7Lc4mPDzAYno"},"options":{"transform":null,"fields":{"profile":1,"username":1,"emails":1}}}': [Object],
I20150707-10:26:06.102(1)? '{"ordered":false,"collectionName":"users","selector":{"_id":"bhJwk7Lc4mPDzAYno","services.resume.loginTokens.hashedToken":"+uhnI7co8s08w/9A53RTBO+qH/jJvKnHJCIYwRIKZ64="},"options":{"transform":null,"fields":{"_id":1}}}': [Object],
I20150707-10:26:06.102(1)? '{"ordered":false,"collectionName":"users","selector":{"_id":"bhJwk7Lc4mPDzAYno"},"options":{"transform":null,"fields":{"roles":1}}}': [Object],
I20150707-10:26:06.102(1)? '{"ordered":false,"collectionName":"meteor_accounts_loginServiceConfiguration","selector":{},"options":{"transform":null,"fields":{"secret":0}}}': [Object],
I20150707-10:26:06.102(1)? '{"ordered":false,"collectionName":"projects","selector":{"user_ids":"bhJwk7Lc4mPDzAYno"},"options":{"transform":null}}': [Object],
I20150707-10:26:06.102(1)? '{"ordered":false,"collectionName":"sourceTypes","selector":{},"options":{"transform":null}}': [Object] },
I20150707-10:26:06.102(1)? _onFailoverHook: { nextCallbackId: 7, callbacks: [Object] },
I20150707-10:26:06.103(1)? db:
I20150707-10:26:06.103(1)? { domain: null,
I20150707-10:26:06.103(1)? _events: {},
I20150707-10:26:06.103(1)? _maxListeners: 10,
I20150707-10:26:06.103(1)? databaseName: 'meteor',
I20150707-10:26:06.104(1)? serverConfig: [Object],
I20150707-10:26:06.104(1)? options: [Object],
I20150707-10:26:06.104(1)? _applicationClosed: false,
I20150707-10:26:06.104(1)? slaveOk: false,
I20150707-10:26:06.104(1)? bufferMaxEntries: -1,
I20150707-10:26:06.104(1)? native_parser: false,
I20150707-10:26:06.104(1)? bsonLib: [Object],
I20150707-10:26:06.105(1)? bson: [Object],
I20150707-10:26:06.105(1)? bson_deserializer: [Object],
I20150707-10:26:06.105(1)? bson_serializer: [Object],
I20150707-10:26:06.105(1)? _state: 'connected',
I20150707-10:26:06.106(1)? pkFactory: [Object],
I20150707-10:26:06.106(1)? forceServerObjectId: false,
I20150707-10:26:06.107(1)? safe: false,
I20150707-10:26:06.107(1)? notReplied: {},
I20150707-10:26:06.107(1)? isInitializing: true,
I20150707-10:26:06.107(1)? openCalled: true,
I20150707-10:26:06.107(1)? commands: [],
I20150707-10:26:06.107(1)? logger: [Object],
I20150707-10:26:06.108(1)? tag: 1436261154640,
I20150707-10:26:06.108(1)? eventHandlers: [Object],
I20150707-10:26:06.108(1)? serializeFunctions: false,
I20150707-10:26:06.108(1)? raw: false,
I20150707-10:26:06.109(1)? recordQueryStats: false,
I20150707-10:26:06.109(1)? retryMiliSeconds: 1000,
I20150707-10:26:06.109(1)? numberOfRetries: 60,
I20150707-10:26:06.109(1)? readPreference: [Object] },
I20150707-10:26:06.110(1)? _primary: '127.0.0.1:3001',
I20150707-10:26:06.110(1)? _oplogHandle:
I20150707-10:26:06.110(1)? { _oplogUrl: 'mongodb://127.0.0.1:3001/local',
I20150707-10:26:06.110(1)? _dbName: 'meteor',
I20150707-10:26:06.111(1)? _oplogLastEntryConnection: [Object],
I20150707-10:26:06.111(1)? _oplogTailConnection: [Object],
I20150707-10:26:06.111(1)? _stopped: false,
I20150707-10:26:06.111(1)? _tailHandle: [Object],
I20150707-10:26:06.112(1)? _readyFuture: [Object],
I20150707-10:26:06.112(1)? _crossbar: [Object],
I20150707-10:26:06.112(1)? _baseOplogSelector: [Object],
I20150707-10:26:06.113(1)? _catchingUpFutures: [],
I20150707-10:26:06.113(1)? _lastProcessedTS: [Object],
I20150707-10:26:06.114(1)? _onSkippedEntriesHook: [Object],
I20150707-10:26:06.114(1)? _entryQueue: [Object],
I20150707-10:26:06.115(1)? _workerActive: false },
I20150707-10:26:06.115(1)? _docFetcher: { _mongoConnection: [Circular], _callbacksForCacheKey: {} } },
I20150707-10:26:06.116(1)? _cursorDescription:
I20150707-10:26:06.116(1)? { collectionName: 'scrapeLog',
I20150707-10:26:06.116(1)? selector: {},
I20150707-10:26:06.116(1)? options: { transform: null, sort: [Object], limit: 10 } },
I20150707-10:26:06.116(1)? _synchronousCursor: null }