$split is not working as expected

For me $split is not working. if I use command like {$split: [“1 2 3”, " "]}, instead of returning {“1”, “2”, “3”}, it is returning [“1 2 3”, " "].

Has anyone faced similar issue.

I could find the solution and it is working now.

Hi,

The syntax looks correct, could try again changing your quotation please? It looks like you used two different double quotes…

José Carlos

1 Like