You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But since there is no .limitBy(1) in your example, what would be the expected behavior if there is actually more than one doc? Return the first one? Throw an error? Ignore the singleDocData?
Avec une requête comme ci-dessous :
Nous obtenons toujours le résultat suivant :
{ data: [{ _id: 'foo', ... }], ... }
La solution pour que l'option
singleDocData
soit respectée est de passer par la méthodegetById
, soit :Et ainsi nous obtenons bien :
{ data: { _id: 'foo', ... }, ... }
The text was updated successfully, but these errors were encountered: