Questions tagged as 'nodejs'

1
answer

Error in ElectronJs and Vuejs

I am developing an application with ElectronJS and Vuejs but when I want to connect it and download data with Firebase it tells me this error: Step part of Vuejs code: const remote = require('electron').remote const main = remot...
asked by 11.09.2018 / 16:35
0
answers

Validation of JSON in Node.js

I am validating the tags of a JSON that is as follows: [{ "Person": [{ "Id": 1, "Type": 1, "Extra": [{ "Number": 88888888, "Code": 506 }], "Personal": { "Name":...
asked by 10.09.2018 / 17:15
0
answers

Sequelizejs include on relating to several fields

I'm trying to relate some tables with sequelizejs. Table 1 has a field with an ID that is used for the relationship and table 2 has 2 fields for the relationship, one is module (string) and the ID for the relationship. The MySQL syntax wou...
asked by 10.09.2018 / 18:01
1
answer

Empty JSON objects in Node.js

I have a query, I would like to know how to validate if a JSON object is empty or not, try doing it with "undefined" or null but since I am new in this I am not sure if this is correct. This is my code: var v = {"Mail":"[email protected]","C...
asked by 05.09.2018 / 23:33
2
answers

Render multiple queries in Node Express

I am working with Node.js (express) and MySQL and I have had problems trying to make several queries in the same route. The error it throws is:    Can not set headers after they are sent. And the code is this: router.post('/test', funct...
asked by 09.09.2018 / 08:27
1
answer

How can I connect my front (localhost) with my back in (localhost)

The case is as follows, I have a front made in angular and I already managed to make the connection between the back and the database, all this locally ... the problem is the following, when I try to obtain back information from my front with a...
asked by 06.09.2018 / 22:14
0
answers

Mobile App - ionic node js mysql

Hello friends, I have a web app developed with express and mysql but it turns out that I must make a mobile from this web app. The login and the register of my App must access the same database, I have the api to enter and cons...
asked by 07.09.2018 / 01:40
1
answer

Search for a record in mongoDB by a ruc number

I need to look for a record in mongoDb by the NUMERO_RUC using node.js, try for findById and it works perfectly but I want to search for other data that is not the id, you can help me I do not know where my fault is. Method to obtain a record...
asked by 02.09.2018 / 21:57
2
answers

Stop JSON reading in node.js

I'm doing a Web Service in Node.js where I have to do several validations but if one of those validations gives an error I need the Web Service to continue running but stop validating, as if it were a Try ... catch alone I do not know if in my c...
asked by 02.09.2018 / 20:56
0
answers

HTTP CODE 304 WHEN CONSUMING A SERVICE WITH FETCH

I have a api rest that works perfectly with postman, but when I consume it in the client with a fetch, it returns a code 304 NOTE: This happens to me when I send the token in the headers, if I do not send the token everything works normal   ...
asked by 12.09.2018 / 07:03