mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
525 B
525 B
NIP-119: 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
AND
MUST take precedence overOR
- Tag values used in
AND
SHOULD NOT be used in standardOR
tags [#
] - Any tag value used in
AND
SHOULD be ignored inOR