Partially update a field.
See original GitHub issueI’m trying to edit a database that has a field to hold information for specific folder paths on my pc. However those folders were moved and now the paths are pointing to the wrong place. Is it possible to use db.collection.update to partially update the field entries or do i need to edit the db file another way?
Something like:
db.folders.update Directory = "D:\\MyFolder\\*" where "C:\\MyFolder\\*"
In this case the “*” sign indicates various other subfolders inside MyFolder. I would like to know if there is a away to achieve something like this thru the shell. Thanks in advance and great work you have here!
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How do I partially update a field in MongoDB so the new ...
"image.s3.ca-central-1.amazonaws.com" this part I want to change to "cloudfront.net" because I need to update all the logo from S3 to cloudfont.
Read more >Partial Updates
A partial update is an update to one or more fields in a document. It also includes updating ... In Vespa, all fields...
Read more >Partial Data Update With Spring Data
Spring Data's CrudRespository#save is undoubtedly simple, but one feature could be a drawback: It updates every column in the table.
Read more >Difference Between Update vs Partial Update Amazon
Partial Updates are used to change only the specific fields that you want to change. · A partial update is only for fields...
Read more >sql server - updating a field with a partial pass parameter
I would like to pass in a parameter that would be used to help identify the column to be updated. one parameter is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Huge facepalm that sneaky
.
was the problem eheh. I just tried it as you suggested and it worked flawlessly…until I opened playnite and the changes break the database, I get a duplication error on the _id indexes, don’t know how it happened as I just changed the InstallDirectory field but since I realized this is way over my head i’ll just leave the programming stuff to the guys that really know what they are doing eheh. I’ve asked on reddit and Playnite’s dev Crowcz is working on a solution for this kind of task so i think i’ll just wait until he’s done his magic 😄Ahah não tinha reparado que eras do Brasil, eu sou portuga eheh, escrevi em inglês para ser mais fácil para quem tiver a mesma dúvida mas é bom saber que há muito talento nesta área no país irmão. Parabéns pelo projecto tá muito bacana, bem organizado e bem documentado. Um abraço deste lado do oceano e desculpa outra vez estar a chatear com a minha burrice 😄
Hi! With the objective of organizing our issues, we are closing old unsolved issues. Please check the latest version of LiteDB and open a new issue if your problem/question/suggestion still applies. Thanks!