Skip to content

@ReadOnly doesnt seem to apply on @VirtualRef property. Or am I missing something? #1605

Answered by Romakita
alexdonh asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @alexdonh
Readonly is just for swagger spec. The metadata isn’t consumed by mongoose or the endpoint. The official decorator to use a model with multiple output models is @Groups.

see the documentation on this decorator please. See you
Romain

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@alexdonh
Comment options

@Romakita
Comment options

@Romakita
Comment options

@Romakita
Comment options

@alexdonh
Comment options

Answer selected by alexdonh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants