When enabled, we will quote strings as minimally as possible.
So when a string doesn't contain ' then we quote with single quotes.
If it contains ' but not " then we quote with double quotes.
If a string contains single and double quotes, we quote with single quotes.
Testing
I ran make install and ran a few queries with some test data.
Description of changes
When enabled, we will quote strings as minimally as possible. So when a string doesn't contain
'
then we quote with single quotes. If it contains'
but not"
then we quote with double quotes. If a string contains single and double quotes, we quote with single quotes.Testing
I ran
make install
and ran a few queries with some test data.mongo
shellScreenshots
javascript_keys:true, minimal_quotes:false
javascript_keys:true, minimal_quotes:true