Graphql custom fuzzy search dql query dosn't work

I see, you should use alias.

type Query {
  searchRoom(search: String!): [Room]
    @custom(
      dql: """
        query q ($search: string){
          searchRoom(func: match(Room.name, $search, 3)) {
      				id:uid
                    name:Room.name
          }
        }"""
    )
}
2 Likes