Data dodania Pytanie
2018-02-13 14:02 How to display images stored in Mongodb using Node.Js »
I need your help on displaying images stored in MongoDB using Node.JS and express framework. I've successfully saved the image using this method: ...
(0) odpowiedzi
2018-02-09 12:02 Why is my async function not working? I just want it to console.log the results of the mongodb query? »
I keep getting Promise { < pending > } on the console.log, I am not too experienced at all with Async functions. (Using JavaScript, Node, Mongodb)...
(2) odpowiedzi
2018-02-04 15:02 Mongoose get collection, where ref »
I have two schemas: Pages and Posts. var pageSchema = new Schema({ commented_times: { type: Number, default: 0 }, posts: ...
(0) odpowiedzi
2018-02-02 04:02 How to add parent name with their name using parent Id »
I have following array which is saved in Database. i want to modify it to display like following which show their hierarchic with parent in localeName...
(3) odpowiedzi
2018-01-31 18:01 I am trying to make a user form for a food website where they can add a list of ingredients onto this form »
So like the title says, I am in the process of making a food blog website, using mongo, and I added a form for the user to add recipes onto their blog...
(0) odpowiedzi
2018-01-28 12:01 Mongodb schema emptied after seconds »
When i am making a request to save a new object to my mongodb, it gets saved, and after seconds everything in that schema disappears. In the screensho...
(1) odpowiedzi
2018-01-26 08:01 Node Express Mongoose array isn't populated with referenced model »
I've been trying to add a related model in an array of model. But when I test the api, the array is always empty. And I've been looking around for ans...
(2) odpowiedzi
2018-01-24 23:01 Search by date using datepicker »
So I'm rendering in EJS some reservations made by a form and stored in a mongoDB. Here is how I'm rendering them: <tbody> <%...
(0) odpowiedzi
2018-01-24 06:01 How to make a post request with node using chai in mocha and mongoDB »
How to make a POST request with node using chai in mocha and mongoDB. I have a test file that contains both my get request and post request. I the co...
(1) odpowiedzi
2018-01-23 10:01 C # Mongo DB collection.find() method does not accept filter »
These are my entities; class User { [BsonId] public string Id { get; set; } public string name { get; set; } public List<Address&g...
(2) odpowiedzi
2018-01-21 23:01 Writing a NoSQL / MongoDB Driver »
I am currently thinking of undertaking the task specified in the title for one of the Lisp languages (most likely Common Lisp). However, I have no ide...
(0) odpowiedzi
2018-01-20 12:01 How to use mongoDB with node »
When I run the script, the error returns. TypeError: db.collection is not a function var MongoClient = require('mongodb').MongoClient; var url...
(3) odpowiedzi
2018-01-20 04:01 HTTP GET, then GET again in Express leads to undefined error, on first GET page »
Simply, open a form, form has a link to a list, but instead of the list, I get "id" undefined, as an error for the form we CAME from, that already wor...
(1) odpowiedzi
2018-01-19 09:01 Meteor MongoDB subscription delivering data in 10 second intervals instead of live »
I believe this is more of a MongoDB question than a Meteor question, so don't get scared if you know a lot about mongo but nothing about meteor. Runn...
(2) odpowiedzi
2018-01-15 21:01 How to update and upsert documents in MongoDB (Mongoose). NodeJS »
I have a service which get data from server using GET request. I repeat this request every 10 seconds and after every request I save these data to my ...
(1) odpowiedzi
2018-01-14 17:01 Not understanding the Mongoose Model? »
I am currently in the process of learning the MEAN stack, and in my studies I am currently on Mongoose. I have an issue understanding what is the mod...
(2) odpowiedzi
2018-01-13 21:01 EJS only showing entire mongo schema, won't display specific data from it »
I am trying to display some data from a mongodb database with EJS and I can only seem to get it to display the entire schema. For example: router.ge...
(1) odpowiedzi
2018-01-13 05:01 node js mongose how to fetch reocord from two collection »
In that below collections I want to try fetch all record from coin_infos collection matching _id of coin_infos with coin_id of wallet_infos and user_i...
(1) odpowiedzi
2018-01-10 23:01 Can't use "delete" operator on mongoose query results »
I'm trying to delete a key before sending data back to the browser. For some reason, maybe because it is a mongoose object, this isn't working: delet...
(5) odpowiedzi
2018-01-07 00:01 General MongoDB performance troubleshooting »
TL;DR: Long running queries kill the whole app for other users. What is the strategy to circumvent that? Hi, I am running MongoDB on AWS T2.small in...
(1) odpowiedzi
2018-01-06 21:01 How do i prevent mongoose.populate() adding a null property? »
is a document of mongo, I'm using mongoose "^4.11.4",express "^4.15.3" and "ejs": "^2.5.6" schemas: const serieSchema = new Schema({ title: { ...
(0) odpowiedzi
2018-01-05 17:01 Reload a model itself during test »
I use mongoid and I have an ContactField model and an Contact model. In my Contact model, I do: Admin::ContactField.all.each do |field| field field.f...
(0) odpowiedzi
2018-01-04 16:01 Web API Get with query parameters on Mongodb collection »
I have WebAPI written and it is using mongodb collection as a database. it looks like [ { "Id":"5a449c148b021b5fb4cb1f66", "airline":[...
(1) odpowiedzi
2018-01-04 14:01 convert mysql query contains sum and group_concat to mongodb query »
I would like to convert below mysql query to mongodb query. SELECT substring(o.schedule_datetime,1,4) 'Year', SUM(IF(o.order_status in ('SUCCESS','#S...
(1) odpowiedzi
2018-01-03 09:01 Pymongo read much slower than mongo client(robomongo) »
It is very quick to query in robomongo, below pic show I do retrieve 500 doc back: I have created index at result.type, my test code: def get_tes...
(2) odpowiedzi
2018-01-02 09:01 Jest, mongoose and async/await »
i have a mongoose model in the node. I want to get all record from that in my test suite with the jest. here is my test: test('should find and return...
(1) odpowiedzi
2018-01-02 08:01 Best way to store a big json file in a database (postgres or mongo) »
I want to download some open data (geodata) in JSON format. The downloadable file is archived in bz2 format and weights about 430 Mb. When uncompresse...
(1) odpowiedzi
2018-01-01 21:01 wolkenkit: DATABASE access & backup »
I just cloned wolkenkit-todomvc from repo. I tried to execute it with "wolkenkit start" then docker exec -it todomvc-mongodb mongo admin show dbs ...
(1) odpowiedzi
2017-12-31 18:12 Structuring a Nodejs, express & ejs app »
Wondering what is the best way to structure the ejs part of the application, here is my current structure. inside maindir/ index.js // starts the a...
(2) odpowiedzi
2017-12-28 03:12 Upsert performance decreases with a growing collection (number of documents) »
Use Case: I'm consuming a REST Api which provides battle results of a video game. It is a team vs team online game and each team consists of 3 player...
(2) odpowiedzi
2017-12-25 22:12 Node.js - Abstracting mongoose model from domain model »
I am building a rest API in node. I am following a general ddd architecture ie repositories, domain models, entities, value objects etc. I chose monto...
(1) odpowiedzi
2017-12-24 23:12 Insert Into Array of object MongoDB »
I have { "_id" : ObjectId("5a25af80d2c4dd065991dccc"), "username" : "abc@gmail.com", "password" : "$2a$10$ptFyLKtyyrL5gMYdXS6wV.HLUA4Py5...
(3) odpowiedzi
2017-12-24 22:12 Use ejs data and variables in node.js module »
I am new to node.js and mongodb . I am using mLabs for my mongo support . I have two queries :- I have created a node module that fetches data and d...
(0) odpowiedzi
2017-12-24 19:12 Read MongoDB with Node »
I want to query a MongoDB and console.log some data. At this point, any data is fine. The records in the MongoDB have a lot of properties, but to keep...
(1) odpowiedzi
2017-12-23 20:12 Save doesn't save any data »
I'm trying to save some data into a local mongodb database. My schema looks as follows: const mongoose = require('mongoose'); const userSchema...
(3) odpowiedzi