Data dodania Pytanie
2017-04-08 11:04 Mongoose infinite loop on Model creation »
Background I have Mongoose Schema about Surveys, that needs to check if the Survey belongs to a set of countries that is in another collection. Cod...
(1) odpowiedzi
2017-04-07 14:04 Invalid status code : 0 in node.js API »
I am building a simple api in node and express with postgre as Db following a tutorial.I am still learning and new to this tech.I followed everything ...
(1) odpowiedzi
2017-04-07 11:04 How to enable autoescape globally in twig.js? »
I'm using express.js and twig.js 0.9.5 and I'd like to enable autoescape for all the variables in every template. I've found this page telling that it...
(1) odpowiedzi
2017-04-07 08:04 javascript object array is not changed »
This code is about fetching data from MongoDB and changing '_id' element to 'id element. But I found object array is not changed. router.get('/loadLi...
(1) odpowiedzi
2017-04-07 05:04 Why are MongoDB upserts so much slower than inserts (with a unique index)? »
I've been testing the limits of MongoDB to see whether it will work for an upcoming project and I've noticed that upserts are quite slow compared to i...
(1) odpowiedzi
2017-04-06 23:04 How can i export data from post route? »
I am trying to build simple weather app using node.js. I want to display weather information on separate ejs file. My code in post route looks like ...
(2) odpowiedzi
2017-04-06 20:04 How to keep a Firebase database sync with BigQuery? »
We are working on a project where a lot of data is involved. Now we recently read about Google BigQuery. But how can we export the data to this platfo...
(3) odpowiedzi
2017-04-06 20:04 Get referenced objected fields from postgresql using node.js »
i have tow tables in postgres database, account_invoice and res_partner. account_invoice has a relational field of res_partner referenced using id (pr...
(0) odpowiedzi
2017-04-06 17:04 (node:2157) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead »
I'm using MEAN stack and every time I save an user i get this warning (node:2157) DeprecationWarning: Mongoose: mpromise (mongoose's default promise ...
(1) odpowiedzi
2017-04-06 15:04 Proper RBAC library for NodeJS »
we are searching for a proper Nodejs library for Role-based access control(RBAC). We did some investigation about it and found that most popular solu...
(0) odpowiedzi
2017-04-06 11:04 Not able to parse json string in ejs becuase of single quote in value »
I am passing one json string variable from nodejs to ejs. e.g stringJson = "{"obj" : "it's not working"}" I am retrieving this value on ejs inside s...
(1) odpowiedzi
2017-04-05 19:04 node.js ~ constructing chained sequence of Promise resolves »
Can anyone suggest a better way to structure this use of Promises? I'm newish to Promises and am wondering if I'm missing something about how to const...
(2) odpowiedzi
2017-04-05 15:04 Passing socket.io data to vuejs »
I have an issue with passing socket.io data to vuejs element. I went through Vue documentation few times and I couldn't find solution for this. Basica...
(1) odpowiedzi
2017-04-05 12:04 reloading page content after async call returns »
I have Ionic2 app with SideMenu template , and on the rootPage I have this code export class HomePage { products: any = []; constructor(public...
(1) odpowiedzi
2017-04-05 09:04 How to Split <ul>'s every different variable »
I want to split <ul> every different variable_name I tried inserting ul inside the if statement but it wont work. Is it possible to put ul with...
(1) odpowiedzi
2017-04-05 07:04 get Object or variable into new window on href click »
Currently I have data table which has child rows as well , In child rows one of my column having the href link and I have the following onClick event ...
(5) odpowiedzi
2017-04-05 04:04 How to convert .html files to .ejs using terminal? »
I have some html files that I want to use in a node project. In order to do that I need to first convert them to .ejs files. Is there a set of command...
(2) odpowiedzi
2017-04-05 03:04 Node.js vs Browser: Chaining rejected promises »
If I try this on Chrome Version 56.0.2924.87 (64-bit) - Expected result.. Promise.reject(null).then(console.log); > Promise {[[PromiseStatus]]: "r...
(2) odpowiedzi
2017-04-04 20:04 Change the default content of a site if the site is redirected »
So I have a eventhandler for a website called "login" : function _GetLoginEventHandler(req, res) { var answer = _getHTMLSkeleton(); var dyn...
(1) odpowiedzi
2017-04-04 14:04 Express sending custom props to React causing props to flash and disappear upon render »
I have a server.js file that should get some data from the server and save it in an object called customP. To make things easier for now I'm playing a...
(0) odpowiedzi
2017-04-04 04:04 How to handle protractor promises within a for loop? »
I'm trying to do some protractor testing and promises are not being resolved within the for loop. In my test case I want to find a particular node in...
(3) odpowiedzi
2017-04-03 22:04 How to try / catch in ejs? »
I have a website with dynamic content. All of the content is passed in through node like res.render('template', data). I in my template I call <%...
(0) odpowiedzi
2017-04-03 13:04 Best way to merge two objects and sum the values of same key? »
I have two objects similar to this: let data = [[ { 10: {key1: 1, key2: 2, key3: 3}, 11: {key1: 1, key2: 2, key3: 3}, 12: {key1: 1, ke...
(2) odpowiedzi
2017-04-03 11:04 Error in mongodb export in node,js »
I was trying to connect mongodb using node.js. I stumbled on a problem. I am getting require(...).pure is not a function error . I tried to use the ...
(1) odpowiedzi
2017-04-03 08:04 How to create a Deep Proxy? »
How can I create a deep/recursive Proxy? Specifically, I want to know whenever a property is set or modified anywhere in the object tree. Here's wha...
(1) odpowiedzi
2017-04-03 05:04 How to get the order Id with Paypal SDK »
I try to use Paypal node js SDK to create an order, but the can not find Order Id in the response. The response only include an payment ID. { "id":...
(0) odpowiedzi
2017-04-02 10:04 Angular2 build under angular-cli with directive and ng build --prod »
I have an angular-cli app, npm -v 3.10.8 node -v v6.9.1 angular2 ^2.4.0 angular/cli 1.0.0-beta.32.3 when I add to package.json this "angular2-aut...
(1) odpowiedzi
2017-04-02 09:04 Adding fields to js objects, in functional way »
I have an array of objects with a set of fields in node.js. Lets say let arr = [ {a:1,b:2}, {a:3,b:6}] I would like to extend all objects and assig...
(3) odpowiedzi
2017-04-02 09:04 express not responding to route »
I am using nodejs and express for api end points, I am using app.use to handle a route, but it is not responding no matter what I do. var express = r...
(2) odpowiedzi
2017-04-02 02:04 Difference between the <a> tag and get request »
I have a perhaps simple question. What would be the difference between an <a> tag and a normal GET request with any element. I know the <a&gt...
(2) odpowiedzi
2017-04-01 15:04 How to use objects list as gulp source stream »
I know that gulp require a vinyl source stream to work properly, but is there an easy way to use an already existant vinyl file or a json object inste...
(1) odpowiedzi
2017-04-01 12:04 Function is not defined with module.exports on nodejs »
I get the error: "login is not defined" on my node.js app, when I try to get the function login in my server.js from a module module1.js which needs d...
(1) odpowiedzi
2017-04-01 09:04 Mongoose fetch records from two related collections with populate »
I need to know how to perform lookup operation in the following collections. The id of collection one is used as projectsId in collection two. I have ...
(1) odpowiedzi
2017-03-31 23:03 Send POST HTTP with ClaudiaJS and AWS Lambda »
I building a service for push notifications in the facebook messenger. My nodejs app works fine in my localhost, but doesn't in AWS. I use request mo...
(1) odpowiedzi
2017-03-31 21:03 EJS Tags with ChartJS? »
Is it possible to use EJS tags to add data to a graph? Here is my current graph's data: var canvas = document.getElementById('myChart'); var data = ...
(2) odpowiedzi