Files
photoview/api/graphql/resolvers/search.graphql
2024-11-02 17:05:29 +01:00

14 lines
364 B
GraphQL

type SearchResult {
"The string that was searched for"
query: String!
"A list of albums that matched the query"
albums: [Album!]!
"A list of media that matched the query"
media: [Media!]!
}
extend type Query {
"Perform a search query on the contents of the media library"
search(query: String!, limitMedia: Int, limitAlbums: Int): SearchResult!
}