Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently the 'in' operator tests if a value is in an array field this update still allows that, but also allows people to test if a string field is in an array of their choosing. eg $url = "https://dummyjson.com/posts"; $posts = Block ::fromJsonUrl($url) ->getBlock("posts"); //if field id is in this array $someOddPosts = $posts->where("id", "in", array(1,3,5,7,9)); // if the string "love" in the tags array field $lovePosts = $posts->where("tags", "in", "love"); (I can update this further, eg testing if a string, should maybe also allow numeric,bool?? or just not an array?? If two arrays, perhaps could get intersection) -- but that was feeling complex
- Loading branch information