Posts by Anderson Rocha • 86 points
4 posts
-
2
votes1
answer1041
viewsA: How to represent an N:N relationship in java?
In a database, n to n relationship generates another intermediate table to store the ids of both sides. When we think of objects, it’s a little different. In this case it makes sense in the Favorite…
-
1
votes1
answer190
viewsA: How to select a dynamically charged dropdown with jQuery?
Next to PHP when you make the request to get the list of activities, you can do the check to know what activity is in your session, add a parameter to that list, for example current = true and when…
-
0
votes1
answer46
viewsA: Data Return from an API
Try doing as @Daniel Omine suggested. $dados[0]->nome. Apparently you have an array of objects and in the PHP array you access this way: $var["chave"] and object you access so: $obj->atributo.…
phpanswered Anderson Rocha 86 -
1
votes1
answer4579
viewsA: How do I delete a specific document from a Collection in Mongodb?
If you want to remove by id you can use the following query: db.collection.remove({"_id": ObjectId("5798ffcd60b2d8a4066b482d")}); You can remove using the same structure as a find. For example, you…
mongodbanswered Anderson Rocha 86