1
0

Part searching

This commit is contained in:
Ahmed Al-Taiar
2023-11-15 10:53:26 -05:00
parent 8060e1e452
commit adf1627405
4 changed files with 120 additions and 32 deletions

View File

@@ -14,6 +14,7 @@ export const schema = gql`
page: Int!
sort: SortMethod!
order: SortOrder!
search: String
}
enum SortMethod {
@@ -30,7 +31,12 @@ export const schema = gql`
}
type Query {
partPage(page: Int, sort: SortMethod, order: SortOrder): PartPage @skipAuth
partPage(
page: Int!
sort: SortMethod!
order: SortOrder!
searchQuery: String
): PartPage @skipAuth
parts: [Part!]! @skipAuth
part(id: Int!): Part @skipAuth
}