RethinkDb : Need research done on how to delete/update a document
- or -
Post a project like this1946
$100
- Posted:
- Proposals: 3
- Remote
- #2222522
- Awarded
Description
Experience Level: Entry
I was able to write a java program that saves the following into rethinkdb (Download rethinkdb -its free)
{
"id": "03953176-bc63-4c4a-9ac4-bd117943434c" ,
"image": "image2" ,
"pUserId": "459" ,
"posts": [
{
"content": "this is not working" ,
"date_inserted": 1543065697533 ,
"imageId": 45 ,
"userId": 1
} ,
{
"content": "this is not working" ,
"date_inserted": 1543065697533 ,
"imageId": 65 ,
"userId": 2
} ,
{
"content": "this is not working" ,
"date_inserted": 1543065697533 ,
"imageId": 165 ,
"userId": 3
}
]
}
Need someone to research how to update the document.
1) Update the document with id(03953176-bc63-4c4a-9ac4-bd117943434c) so that the content of the post with userId 2 is set to "its working"
2) Update the document with id(03953176-bc63-4c4a-9ac4-bd117943434c) so that the post with userId 3 is removed
Attached is a maven file that does the save
{
"id": "03953176-bc63-4c4a-9ac4-bd117943434c" ,
"image": "image2" ,
"pUserId": "459" ,
"posts": [
{
"content": "this is not working" ,
"date_inserted": 1543065697533 ,
"imageId": 45 ,
"userId": 1
} ,
{
"content": "this is not working" ,
"date_inserted": 1543065697533 ,
"imageId": 65 ,
"userId": 2
} ,
{
"content": "this is not working" ,
"date_inserted": 1543065697533 ,
"imageId": 165 ,
"userId": 3
}
]
}
Need someone to research how to update the document.
1) Update the document with id(03953176-bc63-4c4a-9ac4-bd117943434c) so that the content of the post with userId 2 is set to "its working"
2) Update the document with id(03953176-bc63-4c4a-9ac4-bd117943434c) so that the post with userId 3 is removed
Attached is a maven file that does the save
Jubril S.
100% (29)Projects Completed
28
Freelancers worked with
24
Projects awarded
53%
Last project
2 Dec 2022
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies