Add suggestions with fuzzy text search when no relationship is found (#2583)

This commit is contained in:
Laurence Isla
2022-12-15 18:33:15 -05:00
committed by GitHub
parent 566c6fe53f
commit 5a660e0cbe
6 changed files with 74 additions and 23 deletions
+3 -2
View File
@@ -35,7 +35,8 @@ import PostgREST.MediaType (MediaType (..))
import PostgREST.SchemaCache.Identifiers (FieldName,
QualifiedIdentifier)
import PostgREST.SchemaCache.Proc (ProcDescription (..))
import PostgREST.SchemaCache.Relationship (Relationship)
import PostgREST.SchemaCache.Relationship (Relationship,
RelationshipsMap)
import Protolude
@@ -72,7 +73,7 @@ data ApiRequestError
| InvalidRpcMethod ByteString
| LimitNoOrderError
| NotFound
| NoRelBetween Text Text Text
| NoRelBetween Text Text (Maybe Text) Text RelationshipsMap
| NoRpc Text Text [Text] Bool MediaType Bool [QualifiedIdentifier] [ProcDescription]
| NotEmbedded Text
| ParseRequestError Text Text