diff --git a/sdk/migrate-client/schemas/migrate.graphql b/sdk/migrate-client/schemas/migrate.graphql index 241ee8faa..bde76ac28 100644 --- a/sdk/migrate-client/schemas/migrate.graphql +++ b/sdk/migrate-client/schemas/migrate.graphql @@ -356,7 +356,6 @@ input SqlActionFilter { """Negates the expression.""" not: SqlActionFilter - } """ @@ -532,6 +531,28 @@ input StringFilter { """Greater than or equal to the specified value (case-insensitive).""" greaterThanOrEqualToInsensitive: String + """ + Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. + """ + similarTo: TrgmSearchInput + + """ + Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. + """ + wordSimilarTo: TrgmSearchInput +} + +""" +Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. +""" +input TrgmSearchInput { + """The text to fuzzy-match against. Typos and misspellings are tolerated.""" + value: String! + + """ + Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. + """ + threshold: Float } """ @@ -1182,4 +1203,4 @@ input DeleteSqlActionInput { """ clientMutationId: String id: Int! -} +} \ No newline at end of file diff --git a/sdk/migrate-client/src/index.ts b/sdk/migrate-client/src/index.ts deleted file mode 100644 index baad3d5e6..000000000 --- a/sdk/migrate-client/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './migrate/orm';