NIP-91: AND Operator in Filters - Rules
Table of Contents
Enable AND within a single tag filter by using an & modifier in filters for indexable tags.
filters: {
"kinds": [1],
"&t": ["meme", "cat"],
"#t": ["black", "white"]
}
// returns kind `1` events with `t` tags that have both "meme" and "cat" that have the tag "black" or "white"
Rules
ANDMUST take precedence overOR- Tag values used in
ANDSHOULD NOT be used in standardORtags [#] - Any tag value used in
ANDSHOULD be ignored inOR