+10
-5
docs/graphql-api.md
+10
-5
docs/graphql-api.md
···
104
104
105
105
#### Fuzzy Matching Example
106
106
107
-
The `fuzzy` filter uses PostgreSQL's trigram similarity for typo-tolerant search:
107
+
The `fuzzy` filter uses PostgreSQL's trigram similarity for typo-tolerant
108
+
search:
108
109
109
110
```graphql
110
111
query FuzzySearch {
···
124
125
```
125
126
126
127
This will match track names like:
128
+
127
129
- "Love" (exact)
128
130
- "Love Song"
129
131
- "Lovely"
···
132
134
- "Loveless"
133
135
134
136
The fuzzy filter is great for:
137
+
135
138
- Handling typos and misspellings
136
139
- Finding similar variations of text
137
140
- Flexible search without exact matching
138
141
139
-
**Note**: Fuzzy matching works on the similarity between strings (using trigrams), so it's more flexible than `contains` but may return unexpected matches if the similarity threshold is met.
142
+
**Note**: Fuzzy matching works on the similarity between strings (using
143
+
trigrams), so it's more flexible than `contains` but may return unexpected
144
+
matches if the similarity threshold is met.
140
145
141
146
#### Date Range Example
142
147
···
773
778
uri
774
779
alt
775
780
photo {
776
-
url(preset: "fullsize")
781
+
url(preset: "feed_fullsize")
777
782
}
778
783
socialGrainPhotoExifs {
779
784
fNumber
···
795
800
query MyGrainGalleries {
796
801
socialGrainGalleries(
797
802
where: { actorHandle: { eq: "chadtmiller.com" } }
798
-
orderBy: { field: "createdAt", direction: DESC }
803
+
sortBy: [{ field: createdAt, direction: desc }]
799
804
) {
800
805
edges {
801
806
node {
···
829
834
uri
830
835
alt
831
836
photo {
832
-
url(preset: "fullsize")
837
+
url(preset: "avatar")
833
838
}
834
839
aspectRatio
835
840
createdAt