How to search on a linked field?

I have this “type”:

type Album {
    id:   ID!
    name: String!           @search(by: [exact, term])
    owner: User!
    hasImages: [Image]      @hasInverse(field: inAlbum)

owner → User type.

I want to be able to filter for Albums owned by a user. How do you do this? I get an error:

resolving updateGQLSchema failed because input:49: Type Album; Field owner: has the @search directive but the argument exact doesn't apply to field type User.  Search by exact applies to fields of type String. Fields of type User can't have the @search directive.

How does one go about searching like this?

Filter doesn’t work on Objects yet. You should use deep filter on owner and use @cascade directive on the top level.