I have a database and collections which have hyphens (-
) in their names.
select *
from test-schema.test-collection;
I'm using sql-to-mongo-db-query-converter dependency to convert above query to mongoDB but it throwing this exception
I tried using all possible ways like single quotes ('
), double quotes ("
) and punctuation mark (`)
. It works fine for database if we use below query but it's not working if there is hyphens in collections name.
select *
from "test-schema".test-collection;