Recibí este problema durante la consulta usando sails.js
code: 'E_INVALID_CRITERIA', details: 'Could not use the provided `where` clause. Could not filter by `book.bookId`: Cannot use dot notation in a constraint target without enabling experimental support for "deep targets". Please try again with `.meta({enableExperimentalDeepTargets:true})`.Esta es mi consulta. Es muy simple
let result = await sails.models.collectionName.find({"book.bookId": 23}); Intenté agregar .meta({enableExperimentalDeepTargets:true}) en mi consulta pero aún no funciona.
Cómo debería hacer. Soy nuevo en nodejs , mongodb y sails.js