Skip to content

Commit 0f235bc

Browse files
committed
test: update schema snapshot — trgm fields removed from tables without intentional search
1 parent e8c5508 commit 0f235bc

1 file changed

Lines changed: 0 additions & 200 deletions

File tree

graphql/server-test/__tests__/__snapshots__/schema-snapshot.test.ts.snap

Lines changed: 0 additions & 200 deletions
Original file line numberDiff line numberDiff line change
@@ -300,31 +300,6 @@ type Post {
300300
"""The method to use when ordering \`Comment\`."""
301301
orderBy: [CommentOrderBy!] = [PRIMARY_KEY_ASC]
302302
): CommentConnection!
303-
304-
"""
305-
TRGM similarity when searching \`title\`. Returns null when no trgm search filter is active.
306-
"""
307-
titleTrgmSimilarity: Float
308-
309-
"""
310-
TRGM similarity when searching \`slug\`. Returns null when no trgm search filter is active.
311-
"""
312-
slugTrgmSimilarity: Float
313-
314-
"""
315-
TRGM similarity when searching \`content\`. Returns null when no trgm search filter is active.
316-
"""
317-
contentTrgmSimilarity: Float
318-
319-
"""
320-
TRGM similarity when searching \`excerpt\`. Returns null when no trgm search filter is active.
321-
"""
322-
excerptTrgmSimilarity: Float
323-
324-
"""
325-
Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active.
326-
"""
327-
searchScore: Float
328303
}
329304
330305
"""A connection to a list of \`Tag\` values, with data from \`PostTag\`."""
@@ -409,31 +384,6 @@ type Tag {
409384
"""The method to use when ordering \`PostTag\`."""
410385
orderBy: [PostTagOrderBy!] = [PRIMARY_KEY_ASC]
411386
): PostTagConnection!
412-
413-
"""
414-
TRGM similarity when searching \`name\`. Returns null when no trgm search filter is active.
415-
"""
416-
nameTrgmSimilarity: Float
417-
418-
"""
419-
TRGM similarity when searching \`slug\`. Returns null when no trgm search filter is active.
420-
"""
421-
slugTrgmSimilarity: Float
422-
423-
"""
424-
TRGM similarity when searching \`description\`. Returns null when no trgm search filter is active.
425-
"""
426-
descriptionTrgmSimilarity: Float
427-
428-
"""
429-
TRGM similarity when searching \`color\`. Returns null when no trgm search filter is active.
430-
"""
431-
colorTrgmSimilarity: Float
432-
433-
"""
434-
Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active.
435-
"""
436-
searchScore: Float
437387
}
438388
439389
"""A connection to a list of \`Post\` values, with data from \`PostTag\`."""
@@ -542,26 +492,6 @@ input PostFilter {
542492
543493
"""\`comments\` exist."""
544494
commentsExist: Boolean
545-
546-
"""TRGM search on the \`title\` column."""
547-
trgmTitle: TrgmSearchInput
548-
549-
"""TRGM search on the \`slug\` column."""
550-
trgmSlug: TrgmSearchInput
551-
552-
"""TRGM search on the \`content\` column."""
553-
trgmContent: TrgmSearchInput
554-
555-
"""TRGM search on the \`excerpt\` column."""
556-
trgmExcerpt: TrgmSearchInput
557-
558-
"""
559-
Composite full-text search. Provide a search string and it will be dispatched
560-
to all text-compatible search algorithms (tsvector, BM25, pg_trgm)
561-
simultaneously. Rows matching ANY algorithm are returned. All matching score
562-
fields are populated.
563-
"""
564-
fullTextSearch: String
565495
}
566496
567497
"""
@@ -938,29 +868,6 @@ input UserFilter {
938868
939869
"""\`authoredComments\` exist."""
940870
authoredCommentsExist: Boolean
941-
942-
"""TRGM search on the \`email\` column."""
943-
trgmEmail: TrgmSearchInput
944-
945-
"""TRGM search on the \`username\` column."""
946-
trgmUsername: TrgmSearchInput
947-
948-
"""TRGM search on the \`display_name\` column."""
949-
trgmDisplayName: TrgmSearchInput
950-
951-
"""TRGM search on the \`bio\` column."""
952-
trgmBio: TrgmSearchInput
953-
954-
"""TRGM search on the \`role\` column."""
955-
trgmRole: TrgmSearchInput
956-
957-
"""
958-
Composite full-text search. Provide a search string and it will be dispatched
959-
to all text-compatible search algorithms (tsvector, BM25, pg_trgm)
960-
simultaneously. Rows matching ANY algorithm are returned. All matching score
961-
fields are populated.
962-
"""
963-
fullTextSearch: String
964871
}
965872
966873
"""
@@ -1048,17 +955,6 @@ input CommentFilter {
1048955
1049956
"""\`childComments\` exist."""
1050957
childCommentsExist: Boolean
1051-
1052-
"""TRGM search on the \`content\` column."""
1053-
trgmContent: TrgmSearchInput
1054-
1055-
"""
1056-
Composite full-text search. Provide a search string and it will be dispatched
1057-
to all text-compatible search algorithms (tsvector, BM25, pg_trgm)
1058-
simultaneously. Rows matching ANY algorithm are returned. All matching score
1059-
fields are populated.
1060-
"""
1061-
fullTextSearch: String
1062958
}
1063959
1064960
"""
@@ -1157,26 +1053,6 @@ input TagFilter {
11571053
11581054
"""\`postTags\` exist."""
11591055
postTagsExist: Boolean
1160-
1161-
"""TRGM search on the \`name\` column."""
1162-
trgmName: TrgmSearchInput
1163-
1164-
"""TRGM search on the \`slug\` column."""
1165-
trgmSlug: TrgmSearchInput
1166-
1167-
"""TRGM search on the \`description\` column."""
1168-
trgmDescription: TrgmSearchInput
1169-
1170-
"""TRGM search on the \`color\` column."""
1171-
trgmColor: TrgmSearchInput
1172-
1173-
"""
1174-
Composite full-text search. Provide a search string and it will be dispatched
1175-
to all text-compatible search algorithms (tsvector, BM25, pg_trgm)
1176-
simultaneously. Rows matching ANY algorithm are returned. All matching score
1177-
fields are populated.
1178-
"""
1179-
fullTextSearch: String
11801056
}
11811057
11821058
"""
@@ -1222,16 +1098,6 @@ enum PostOrderBy {
12221098
PUBLISHED_AT_DESC
12231099
CREATED_AT_ASC
12241100
CREATED_AT_DESC
1225-
TITLE_TRGM_SIMILARITY_ASC
1226-
TITLE_TRGM_SIMILARITY_DESC
1227-
SLUG_TRGM_SIMILARITY_ASC
1228-
SLUG_TRGM_SIMILARITY_DESC
1229-
CONTENT_TRGM_SIMILARITY_ASC
1230-
CONTENT_TRGM_SIMILARITY_DESC
1231-
EXCERPT_TRGM_SIMILARITY_ASC
1232-
EXCERPT_TRGM_SIMILARITY_DESC
1233-
SEARCH_SCORE_ASC
1234-
SEARCH_SCORE_DESC
12351101
}
12361102
12371103
"""Methods to use when ordering \`PostTag\`."""
@@ -1269,16 +1135,6 @@ enum TagOrderBy {
12691135
NAME_DESC
12701136
SLUG_ASC
12711137
SLUG_DESC
1272-
NAME_TRGM_SIMILARITY_ASC
1273-
NAME_TRGM_SIMILARITY_DESC
1274-
SLUG_TRGM_SIMILARITY_ASC
1275-
SLUG_TRGM_SIMILARITY_DESC
1276-
DESCRIPTION_TRGM_SIMILARITY_ASC
1277-
DESCRIPTION_TRGM_SIMILARITY_DESC
1278-
COLOR_TRGM_SIMILARITY_ASC
1279-
COLOR_TRGM_SIMILARITY_DESC
1280-
SEARCH_SCORE_ASC
1281-
SEARCH_SCORE_DESC
12821138
}
12831139
12841140
type User {
@@ -1349,36 +1205,6 @@ type User {
13491205
"""The method to use when ordering \`Comment\`."""
13501206
orderBy: [CommentOrderBy!] = [PRIMARY_KEY_ASC]
13511207
): CommentConnection!
1352-
1353-
"""
1354-
TRGM similarity when searching \`email\`. Returns null when no trgm search filter is active.
1355-
"""
1356-
emailTrgmSimilarity: Float
1357-
1358-
"""
1359-
TRGM similarity when searching \`username\`. Returns null when no trgm search filter is active.
1360-
"""
1361-
usernameTrgmSimilarity: Float
1362-
1363-
"""
1364-
TRGM similarity when searching \`displayName\`. Returns null when no trgm search filter is active.
1365-
"""
1366-
displayNameTrgmSimilarity: Float
1367-
1368-
"""
1369-
TRGM similarity when searching \`bio\`. Returns null when no trgm search filter is active.
1370-
"""
1371-
bioTrgmSimilarity: Float
1372-
1373-
"""
1374-
TRGM similarity when searching \`role\`. Returns null when no trgm search filter is active.
1375-
"""
1376-
roleTrgmSimilarity: Float
1377-
1378-
"""
1379-
Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active.
1380-
"""
1381-
searchScore: Float
13821208
}
13831209
13841210
"""A connection to a list of \`Post\` values."""
@@ -1472,16 +1298,6 @@ type Comment {
14721298
"""The method to use when ordering \`Comment\`."""
14731299
orderBy: [CommentOrderBy!] = [PRIMARY_KEY_ASC]
14741300
): CommentConnection!
1475-
1476-
"""
1477-
TRGM similarity when searching \`content\`. Returns null when no trgm search filter is active.
1478-
"""
1479-
contentTrgmSimilarity: Float
1480-
1481-
"""
1482-
Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active.
1483-
"""
1484-
searchScore: Float
14851301
}
14861302
14871303
"""Methods to use when ordering \`Comment\`."""
@@ -1499,10 +1315,6 @@ enum CommentOrderBy {
14991315
PARENT_ID_DESC
15001316
CREATED_AT_ASC
15011317
CREATED_AT_DESC
1502-
CONTENT_TRGM_SIMILARITY_ASC
1503-
CONTENT_TRGM_SIMILARITY_DESC
1504-
SEARCH_SCORE_ASC
1505-
SEARCH_SCORE_DESC
15061318
}
15071319
15081320
"""A \`Comment\` edge in the connection."""
@@ -1588,18 +1400,6 @@ enum UserOrderBy {
15881400
USERNAME_DESC
15891401
CREATED_AT_ASC
15901402
CREATED_AT_DESC
1591-
EMAIL_TRGM_SIMILARITY_ASC
1592-
EMAIL_TRGM_SIMILARITY_DESC
1593-
USERNAME_TRGM_SIMILARITY_ASC
1594-
USERNAME_TRGM_SIMILARITY_DESC
1595-
DISPLAY_NAME_TRGM_SIMILARITY_ASC
1596-
DISPLAY_NAME_TRGM_SIMILARITY_DESC
1597-
BIO_TRGM_SIMILARITY_ASC
1598-
BIO_TRGM_SIMILARITY_DESC
1599-
ROLE_TRGM_SIMILARITY_ASC
1600-
ROLE_TRGM_SIMILARITY_DESC
1601-
SEARCH_SCORE_ASC
1602-
SEARCH_SCORE_DESC
16031403
}
16041404
16051405
"""Root meta schema type"""

0 commit comments

Comments
 (0)