Skip to main content

All Questions

1 vote
0 answers
26 views

I can't add a new Row to an inline crud table once i get live data

I am trying to create an inline create and edit function on a table in angular, when i click on 'add', a new row with empty input fields is supposed to be created. works well on mock data but wont ...
WiikoiTek's user avatar
2 votes
1 answer
480 views

UpdateMany document with array of objects in mongodb

I have a mongodb collection which looks like this [ { pId: "p1", apikey: "a2", count: 0 }, { pId: "p2", apikey: "...
abinas patra's user avatar
0 votes
3 answers
808 views

How to edit an object inside array using ramda expressions?

I have an array like this : [ { id: '1852', label: 'One', types: [1, 2, 4] }, { id: '1854852', label: 'Two', types: [1, 2] }, { id: '4581852', label: 'Three', ...
TaouBen's user avatar
  • 1,295
1 vote
1 answer
31 views

Unable to update data values on mongoDb native findOneAndUpdate query

exports.update_activity_status = (req, res) => { const { campaign_id, leadId, leadActivity, status, } = req.body; const client = mongoClient.connect(`${process.env.MONGO_URL}`...
program_bumble_bee's user avatar
1 vote
1 answer
55 views

Remove (Update query) only particular element in array of array mongodb?

My Input Data { _id: 1, results: [ { item: "A", score: 5, answers: [ { q: 1, a: 4 }, { q: 2, a: 6 } ] }, { item: "B", score: 8, answers: [ { q: 1, a: 8 }, { q: 2, a: 9 } ] } ] } ...
Arun's user avatar
  • 21
1 vote
1 answer
33 views

Using Javascript arrray in mongodb update query with $in

I am trying to update all documents in my collection which have fields containing any one of the values in my javascript array. I keep getting a '$in needs an array' error. I do not understand how to ...
Abhishek Malik's user avatar
3 votes
1 answer
4k views

Updating Array Objects in Realm

I have a realm Organization and Ticket. An organization has many tickets. So to update organization, it looks like this: try { realm.write(() => { realm.create('...
Maiko Francisco Rugeria's user avatar
3 votes
3 answers
138 views

Javascript update a value in an array within an array

I'm using the Flot Chart plugin to construct a bar chart. When the script receives new data, I need it to increase that value by one. var data = [["A", 0], ["B", 0], ["C", 0], ["D", 0], ["E", 0]] $....
Blease's user avatar
  • 1,400