mirror of
https://github.com/nostr-protocol/nips.git
synced 2026-08-09 07:44:51 +00:00
524 B
524 B
NIP-91: AND Operator in Filters
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