S
S
Sergey2015-09-18 08:14:43
MongoDB
Sergey, 2015-09-18 08:14:43

How to delete part of text in document array in mongo?

There is a document:

{'title':'somename', 'article':'text'}

You need to delete one line in the text value. How can i do this?
I can't delete the document and insert a new one. Its text is too long and does not fit in the mongo console. How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lega, 2015-09-18
@lega

Its text is too long and does not fit in the mongo console. How to be?

Use temporary variables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question