M
M
Monitorkin2017-08-24 14:24:51
MongoDB
Monitorkin, 2017-08-24 14:24:51

How to properly use MongoDB data types?

Hello, I decided to try MongoDB and I just can't figure out how data types are used. They are described in the documentation, but if you look at the structure of the document, the parameters do not explicitly indicate what type it is.
If I want my parameter to be a number, how can I specify it? How does mongodb determine the data type? I can write anything into the parameter: both string and integer, and if so, what's the point in data types? Or should I keep track of the type each time I write it and convert it to the right one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qovalenko, 2019-05-02
@qovalenko

https://data-flair.training/blogs/mongodb-data-types/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question