Posts by Rodolpho • 75 points
5 posts
-
2
votes1
answer900
viewsQ: Using model.find() with LIKE in Mongoose
I have a function here to do a search on Mongodb using Mongoose, but I would like him to find Brazil when I searched for bra, Bra, Sil, Sil, etc. I looked in the documentation and followed the…
-
0
votes1
answer52
viewsA: Sort followed by map not working in React
I managed to solve the problem! Not all objects being ordered had the order property, hence the "bugava" Sort and did not change the array. Adding a value (0) to all worked
-
0
votes1
answer52
viewsQ: Sort followed by map not working in React
I have an array of objects and am trying to iterate with the map in that array after the method of sort, but it is iterating in the normal array, disregarding the method sort and the reordering.…
-
3
votes1
answer316
viewsQ: Error trying to access an object property in an React component
I’m having a problem accessing information from an array that has an object inside, using React. This is the function that brings my json and changes the state of the application, it creates a…
-
2
votes1
answer27528
viewsQ: Calling Javascript function with onclick with content loaded from div
I have a div that has its contents loaded after loading the rest of the page. It is called by a button via AJAX. I have another button inside that content that would call a Javascript function to…