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