Automattic / Automattic/monk

createCollection, validation and middleware

Open
#242 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
180
PR merge metrics
No merged PRs in 30d

Description

Hi,

At first, good job, very nice lib! :)
I have questions:

1. how i can create collection with schema, or with simple validation on mongo side?

2. how i can transform mongo duplication error with code 11000 tohuman readable message throught middleware?

Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. First clarify how Monk exposes collection creation and middleware, then inspect the relevant MongoDB integration documentation or examples; done means documenting schema or validation setup and a middleware path for readable duplicate-key errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb
Domain
backend, databases
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.