Questions tagged as 'mongodb'

0
answers

Entity Embedded In Morphia

I would like to know if there is a way to make an entity "@Entity" and at the same time to embed it "@Embebbed" in morphia. Possible code attachment @Embedded @Entity public class Perfil { @Id private ObjectId id; but when doing...
asked by 10.07.2018 / 16:03
0
answers

Simpl-Schema Error in MeteorJs

I'm using MeteorJs, I'm new and I'm developing an app. TypeError: func is not a function I have this error that I do not know what is due: W20180704-19:24:46.581(-3)? (STDERR) throw error; W20180704-19:24:46.582(-3)? (STDERR)...
asked by 05.07.2018 / 00:37
1
answer

Problem connecting to my mongo database

If I try to connect to mongo, mongod from the shell I get that and in my configuration my connection to mongo also gives me error MONGO MongoDB shell version v3.4.10 connecting to: mongodb://127.0.0.1:27017 2018-07-05T12:05:35.086+...
asked by 05.07.2018 / 12:10
0
answers

TypeError: Can not read property 'findOne' of undefined

I'm new to Javajscript, I'm using MeteorJs and I have this error:    TypeError: Can not read property 'findOne' of undefined The error begins in this line if(!Entradas.findOne()){ This is the script: import { Meteor } from...
asked by 04.07.2018 / 01:29
0
answers

mongoose unhandled error in promise

Hello, I would like to know how to do it so that once the update of the duration is over, it will be when I show the updated duration. Recipe.insertMany(recipes) .then(recipes => { console.log('${recipes.length} inserted');...
asked by 27.06.2018 / 16:41
0
answers

ERROR with MeteorJS and MongoDB

Dear, I have an error that I can not solve and I do not know where it is because I do not have any error as a reference. I am new with Meteor, I am developing a simple "Hello Word" start application, but I can not show the data in the applica...
asked by 23.06.2018 / 22:44
1
answer

How to execute js file to iterate a mongo collection

I know it's a very generic question but this is a concept, I'm not sure since I've run everything, I've created a mongo collection with mongoImport and there I can find and find everything from the mongo shell, making node file.js runs line by l...
asked by 19.06.2018 / 11:41
0
answers

MongoDB createAggregationBuilder with Simultaneous operations

public function inventario(\App\Document\Tecnico $tecnico, $value) { $builder = $this->createAggregationBuilder(); $builder ->hydrate(\App\Document\Inventario::class) ->match() ->field('tecnico')...
asked by 07.06.2018 / 00:13
1
answer

How to query collections with mongoose embedded fields?

learning mongoose and mongoDB I have an inconvenience that I do not know how to solve, with the following code: var mongoose = require('mongoose'); var mongooseEsquema = new mongoose.Schema({ nombre: {type: String}, apellido : {type:...
asked by 12.06.2018 / 00:28
0
answers

Paginate is not a function

Partners help me! I want to paginate the results of my Artist model extracted from mongoDB but the following error appears: Artist.find(...).sort(...).paginate is not a function This is my model const mongoose = require('mongoose'); cons...
asked by 05.06.2018 / 07:12