Include Schema in schema create an Array, why ? #11818
Closed
davy-blavette
started this conversation in
General
Replies: 1 comment 1 reply
-
because your using find method to your queries, find always return a array, if you want only one element need to use findOne or FindById |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Why I have a difference with :
result is dataExpression: {
colere: []
} is good, I have an Object....
If I use :
dataExpression: [dataExpressionSchema]
with :
result is dataExpression: [
{ colere: []}
] is bad because I have an Array....
Beta Was this translation helpful? Give feedback.
All reactions