Hi Jim
I tried switching back and forth between a standalone mongod
and a sharded cluster and so far found that no changes are necessary to the connection string, as expected. Mongoose will also insert into a sharded collection with no issue.
Could you post a small script that could reproduce the error? It will also be helpful to know how your MongoDB sharded cluster is setup (e.g. config files content, command line options, etc.). Without those information, there is little anyone can do to try to reproduce this.
You might also consider posting the issue in the Mongoose github project to see if anyone is having a similar issue.
Best regards
Kevin