How do I make a query to get documents where something contains in the documents array "roles"? I want to get the below document where Trainer is a element in the array.
"enabled": true, "profilePicture": null, "roles": [ "Trainer", "Client" ],
SELECT * FROM u WHERE u['$type'] = 'User' AND //roles contains Trainer