Skip to content

Conversation

percimar
Copy link

@percimar percimar commented Sep 16, 2025

In the mongoose @Prop decorator code snippets, the ref option is being passed nested inside the type option. However, as seen in the implementation here, ref is expected at the root of PropOptions, not nested within PropOptions.type.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Docs
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

ref is being passed nested inside type, causing population to not work.

What is the new behavior?

ref is being passed correctly, causing population to work correctly.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@kamilmysliwiec
Copy link
Member

Could you please provide a minimum reproduction repository (Git repository/StackBlitz/CodeSandbox project)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants