Link Filtering

You can filter on Links within Entries. The same logic applies as for nested filtering: your Content Model must include validations specifying the Content Type (or types) for the Link. For example, the following schema can be generated for a content model that contains a Blog Post content type, with the Title and Content fields as strings and a Link to an entry with a validation specifying an Author:

type BlogPost {
sys: Sys
title: String
content: String
author: Author
}
type Author {
sys: Sys
name: String
}

You can filter on any fields of the author type. For example:

query {
blogPostCollection {
items {
title
content
author(where: {name: "Blog Post Author"}) {
name
}
}
}
}

If there is a match, the author will be returned. Otherwise, you will receive a null value. All of the same filters that are available on collections are available on this single link level.