Questions tagged as 'mongodb'

1
answer

How to send html form to route node? Crud!

Hello, I have to send the information of an html form via POST to a crud on node and mongodb! I can not do it! follows the code below: pastebin code: link     
asked by 16.10.2018 / 14:29
1
answer

How to transform the json observable into datasource for Angular Material 2

This is usually returning from the database, but when it passes the datasource it becomes empty component import { Component, OnInit} from '@angular/core'; import { Tcp } from '../tcp'; import { TcpService } from '../../services/tcp.service...
asked by 01.09.2018 / 15:53
1
answer

Add data per month using mongoose

Hello! I need to aggregate data per month to use later to make charts. I'm using Mongoose as ODM and the following scheme: module.exports = mongoose.model('atendimento', { id: String, id_atendimento: { type: Number, default: 0 }, i...
asked by 06.08.2018 / 18:55
1
answer

Get attribute within an array in MongoDB

Hello, friends. Good night! I'm having a problem in developing an api, I need to query some attributes within an array of a Schema in MongoDB to add them to an email in a request. Can anyone help me? follows the Schema model below: I need...
asked by 31.07.2018 / 02:46
1
answer

How to search for Id in mongodb With condition

How to do a mongo search with condition parameters, type: Collection.find({userId}, {done: true}).fetch(); In this way, I want to return all the documents that have the done equal to true, searching the User id. I have in the collectio...
asked by 29.07.2018 / 20:55
1
answer

adminMongo connection screen

I installed adminMongo. Follow the installation instructions :    Navigate to folder & install adminMongo: git clone link & cd adminMongo    Install dependencies: npm install    Start application: npm start or node app    Vi...
asked by 03.08.2018 / 12:22
1
answer

Print BSON of MongoDB with several different structures

Hello, I'm making an application using Python (Flask) and MongoDB. In this application the user can assemble his page inserting Images, Text or youtube link. With the sequence you want. This first part I did and I'm recording in Mongo. The...
asked by 23.08.2018 / 00:03
1
answer

Problems with filter in lib API QUERY PARAMS

I'm using this lib to apply filters api-query-params I need to filter for this entity; 'use strict' const mongoose = require('mongoose'); const Schema = mongoose.Schema; const schema = new Schema({ id: { type: String,...
asked by 17.08.2018 / 18:27
1
answer

Javascript - Compare input field with mongodb field

Can anyone give me information about this? I'm trying to learn or else demonstration with explanation What I want to do is to have input in html and go get the value of this input to check if it exists in a particular collection and if it exi...
asked by 29.06.2018 / 16:49
2
answers

Convert SQL query to MongoDB

I have little (or no) knowledge in non-relational banks. I need to convert the query below (SQLite) into an equivalent query to be run in MongoDB. SELECT COUNT(*) FROM match_table WHERE (home_team_api_id=9991 AND home_team_goal > away_team_...
asked by 12.06.2018 / 19:12