creating Mongo fixed collection but still having shardKey in payload
- Dominant language
- TypeScript
- Stars
- 131
- Forks
- 67
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 10
Description
While creating fixed collection (Unsharded 20GB limit) in both MongoDB v3.6, v4.0 accounts, request payload still includes ShardKey even through the input box is hidden already.
This behavior leads users always creating partitioned collection no matter which sharding option they opt-in.
Request payload should remove "shardKey" property, thus allows Portal-Data Explorer creating fixed collection in specified database.

Contributor guide
Research direction
Start at the Data Explorer's MongoDB collection-creation flow and reproduce the fixed-collection request for the MongoDB v3.6 and v4.0 accounts described in the issue. Confirm that the payload omits the shardKey property when the sharding option is disabled, and verify that a fixed collection is created in the specified database.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mongodb, typescript
- Domain
- databases, frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100