3 ms·
It always feels like we keep reinventing Lisp. You could do something like: ['contains?', ['list', 1, 2, 3], 1] Instead of: { $contain: { foo:
by smizell 11y ago
It always feels like we keep reinventing Lisp. You could do something like:
['contains?', ['list', 1, 2, 3], 1]
Instead of:
{
$contain: {
foo: 1
}
}, {
foo: [ 1, 2, 3 ]
}
- jviotti 11y agoHaha definitely! You could write a small module that compiles the lisp-like syntax that you mention above to a Queryl object.