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.
01
02
03
04
05
06
07
08
09
10
const expression = {
name: { $concat: ["$name", " ", "$surname"] },
mostFavouriteSports: {
$filter: {
input: "$sports",
as: "sport",
cond: { $gt: ["$$sport.rating", 8] },
},
},
};
01
02
03
04
05
06
07
08
09
10
const variables = {
name: "John",
surname: "Doe",
sports: [
{ name: "football", rating: 9 },
{ name: "basketball", rating: 10 },
{ name: "tennis", rating: 5 },
{ name: "swimming", rating: 7 },
],
};
01
02
03
04
05
06
07
{
"name": "John Doe",
"mostFavouriteSports": [
{ "name": "football", "rating": 9 },
{ "name": "basketball", "rating": 10 }
]
}