Is it possible to populate a list that references another list in the same document? Example in the image below, I want to popular / return in a search always the access link referring to another list of links that has all the information. This...
I'm studying docker, and I'm trying to run a small application made in Springboot along with Mongodb in a single container.
I wrote the following Dockerfile:
FROM openjdk:8-jre-alpine
ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
JAVA_OPTS=""
A...
I'm setting up a store, using Keystone JS, I installed the Pug JS and MongoDB dependencies.
I created a model that is pointing to a view, called Tour.JS
The problem is that I could not efficiently list all the items that are in the MongoDB...
In the collection documents lightningStrikes there is a datetime property whose value is of type ISODate.
There are several new documents in this collection every minute.
My goal is to create a view that always returns the data for the la...
I have the following total array I need to pick only those that have date.
{
"_id" : ObjectId("58862a838f3e2721f8d920cc"),
"total" : [
[],
[],
[
ISODate("2017-09-07T00:00:00.000Z")
],
[],
[],
[],...
I made a direct query on the console that returned what I expected, the query on the mongo is like this.
db.AtividadeResultMongo.aggregate([{$unwind: "$LsVariaveisProcesso"},
{$match: {
IdAtividade : 913,
IdEstadoInstanciaA...
I want to add an embedded document, I am using $push of update, in schema I put the attribute as index: { unique : true } , but not respecting the rule this is registering item as the same name
Can anyone help me?
var funcionar...
Whenever I make a change in my Schema I have to restart my mongo server or node for the changes to take effect.
I'm using the nodemon, but it does not always update, has anyone ever had it?
module.exports = function(app){
var Schema = r...
As requested, I narrowed down the codes a little and kept only the essentials that I believe were involved with the problem.
Reformulating my question: I have a simple register in a modal (only name, email, phone and password) I can navigate the...
I'm starting with MongoDB and I'm having a question about optimization.
COLLECTION BOLAO:
[
campeonato : 'Brasil - Série A',
confrontos : [
{
id : 10,
casa : "Sport",
visitante : "Chapecoense",
horario : "2017-07-20 11:00:00"
}
]...