3 ms·
How do you tell the difference between a string and a number then (also, what precision is the number, is it a float or an int etc.)?
by aragilar 2y ago
How do you tell the difference between a string and a number then (also, what precision is the number, is it a float or an int etc.)?
- Timon3 2y agoDepends! If you know the schema, you already have this information. If you don't know the schema, the most common approach is to store the type and value in an object, e.g. { "_t": "float64", "_v": "3.14159" }