Skip to content

Commit 227191e

Browse files
rewording to tags presence
1 parent 5f77c0e commit 227191e

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

100.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
NIP-100
22
=======
33

4-
Querying Events by Tags Structure
4+
Querying Events by Tags Presence
55
---------------------------------
66

77
`draft` `optional` `author:fernandolguevara` `requires:nip-12`
88

9-
This NIP allows clients to query events from relays where a specific tag is present in the event's structure.
9+
This NIP allows clients to query events from relays based on the presence or non-presence of specific tags.
1010

11+
### Presense:
1112
The filter condition matches if there is at least one tag name in common with the filter and event.
1213

14+
### Non-Presence:
15+
The filter condition matches if there is at least one tag in the filter that are not present in the event.
16+
1317
Example Subscription Filter
1418
---------------------------
1519

16-
Below is an example filter that matches events with a `g` tag in their structure:
20+
Below are some example filters that demonstrate tag presence and non-presence:
21+
22+
1. Filter to match events with a `g` tag:
1723

1824
```json
1925
{
2026
"tags": ["g"]
2127
}
2228
```
2329

24-
Other filter example that matches events with an empty/non present `e` tag in their structure:
25-
30+
2. Filter to match events without the presence of the `e` tag:
2631

2732
```json
2833
{

0 commit comments

Comments
 (0)