For example I have two models in mongoose:
var Persona = {
nombre: "Luis",
carros:{
type: Schema.ObjectId,
ref:'Carro'
},
apellidos:"Colx Redex"
}
var Carro = {
modelo:"FX-200",
velocidad:"300km/h",
marca:"Nissan"
}...
I'm trying to deploy an index.js file in Firebase but I'm getting this error:
129: 41 error Parsing error: Unexpected token = >
This is my code :
const callSendAPI = async (messageData) => {
const url = "https://graph.facebook...
I'm trying to install ionic on my macbook, and I've had a lot of trouble trying to install NODE and npm, in the end I managed to install everything without any errors, but when I try to start the project, with this command:
sudo ionic start io...
I am trying to make a type of append inside an object, but I would not be knowing what method to use to achieve it. For what I'm looking for, they recommend using an array, but I honestly do not feel like using that method. (When I use db I do n...
I can not sort the result of a query in mongoose and I do not know if an aggregation function is necessary to achieve that order.
I have a column called _id and another column called comment_id (which contains the main _id to reference). This...
Work with sockets now, as follows, I have a gps that is pointing to my server, at the moment I had to make my ip public and assigned a port where the data would arrive:
Now on the server side with nodejs I have this:
var express = require("exp...
I made an implementation of Javascript Promises and I would like you to give me feedback on how I did it. I think I'm not doing it correctly in terms of chainning, also because in the code I have several levels of indentation. They almost look l...
I am in the process of learning with this framework ( vue. js ) and I need to find a way to add a page in a table, by which, it should be expanded as more objects are added and then list them in the table and limit the number of items to be disp...
I have a problem when making subqueries in mongoose, I have two collections one place and another material , the place collection has an array of materials ids added by a user .
Now what I'm trying to do is to be able to update a plac...