Search code examples
mongodbnosql

can you concatenate using compass mongodb?


I am new to MongoDB. I would like to know if it is possible to concatenate two data from a collection using a compass. I know it can be achieved using mongo shell, but why can't compass be used? Thanks in advance.

Image

image of the fields In this case I want to make ENAME concatenate with itself.


Solution

  • In MongoDB Compass, you can "$concat" strings in a projection of Find. enter image description here