Explore our documentation
Explore

Create Logic With JSON, Unlocking New Possibilities

Expry enables the creation of expressions through JSON syntax. Tap into JSON's powerful features and develop logic in new and different ways.

const expression = {
name: { $concat: ["$name", " ", "$surname"] },
mostFavouriteSports: {
$filter: {
input: "$sports",
as: "sport",
cond: { $gt: ["$$sport.rating", 8] },
},
},
};
const variables = {
name: "John",
surname: "Doe",
sports: [
{ name: "football", rating: 9 },
{ name: "basketball", rating: 10 },
{ name: "tennis", rating: 5 },
{ name: "swimming", rating: 7 },
],
};
{
"name": "John Doe",
"mostFavouriteSports": [
{ "name": "football", "rating": 9 },
{ "name": "basketball", "rating": 10 }
]
}