Posts by Leandro Barbosa • 31 points
4 posts
-
0
votes1
answer69
viewsQ: How to use recursiveness to iterate in array
I’m looking to implement a recursive function that traverses an array and returns the elements (an alternative to the loop for educational purposes, only). I did it this way, but he returns to me…
-
0
votes1
answer84
viewsQ: Return range of numbers according to the division of total numbers by an integer
Given the following situation: I need to create a function that receives as parameter (int value and int divisor). The idea is popular an array with the TOTAL of the range passed to the function.…
-
1
votes1
answer99
viewsA: Remove documents embedded in Mongodb
Initially, you can try this way: db.acervo.remove({'livros.Título': 'Livro C'}) You can also use the update function along with $pull to remove all exact matches from a specified array value; In…
mongodbanswered Leandro Barbosa 31 -
0
votes1
answer133
viewsA: Reference in the mongodb
Friend, unlike the Relational Banks, in SGBD Mongodb there is no concept of relationship and yes, reference. In your context, you can ship the documents contained in the collection extinguisher with…