Is there any way to do containedIn queries on objects? or is it locked to arrays?
Code example provided. The “ItemsInPlay” table lists both Items & Things columns as objects.
const query = new Moralis.Query("Thing");
query.equalTo("isPublished" , true);
query.greaterThanOrEqualTo("thisDate", new Date() );
const thingList = await query.find(); // This gets an list of things that have a date set greater than now
const query2 = new Moralis.Query("Items");
query2.equalTo("isAwesome",true);
const itemObject = await query2.find(); // This gets a list of awesome item objects
const query3 = new Moralis.Query("ItemsInPlay");
query3.containedIn("item", itemObject);
query3.containedIn("thing", thingList);
query3.withCount();
This is what I’d like to do as the “ItemsInPlay” table columns only lists what I need in object form, if at all possible.