I’m trying to create a GraphQL query that makes a fuzzy search, but it just returns an empty array. I have tried many different ways, but the documentation isn’t helping. I don’t get it, aren’t you supposed to do it like this or why is it so hard?
Here is my GraphQL query:
type Query {
querySearchRooms(SEARCH: String!): [Room] @custom(dql: """
query q ($SEARCH: string) {
querySearchRooms (func: match(name, $SEARCH, 3)) {
id
}
}""")
}
The “Room”-type looks like this:
type Room {
id: ID!
name: String! @id @search(by: [trigram])
}