Thanks fo ryour time that did the trick. The next stumbling block is to match a language as well. The required language is an element of an array (where the subject speaks mor than one language.
language:[“english”, “german”, “french”]
I am not sure how to formulate the request.
const pipeline =[
{
$match: {
'fullDocument.available': true,
'fullDocument.language': {$in:['english']}
}
}
];
Doesnt work.
What is the correct formulation please? The documentation is quaite vague.
On another note, where can I find documentation on the fullDocument notation and the allowed options in the watch(pipeline, options) function.
Thanks again for helping me learn.
Regards
John