Commit 227191e 1 parent 5f77c0e commit 227191e Copy full SHA for 227191e
File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
NIP-100
2
2
=======
3
3
4
- Querying Events by Tags Structure
4
+ Querying Events by Tags Presence
5
5
---------------------------------
6
6
7
7
` draft ` ` optional ` ` author:fernandolguevara ` ` requires:nip-12 `
8
8
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 .
10
10
11
+ ### Presense:
11
12
The filter condition matches if there is at least one tag name in common with the filter and event.
12
13
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
+
13
17
Example Subscription Filter
14
18
---------------------------
15
19
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:
17
23
18
24
``` json
19
25
{
20
26
"tags" : [" g" ]
21
27
}
22
28
```
23
29
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:
26
31
27
32
``` json
28
33
{
You can’t perform that action at this time.
0 commit comments