update codegen to include new vendors query and implement vendors query

Signed-off-by: Loan Laux <loan@outgrow.io>
This commit is contained in:
Loan Laux
2021-05-14 13:07:29 +04:00
parent b5559cc492
commit 16e475067b
5 changed files with 170 additions and 21 deletions

View File

@@ -1,15 +1,8 @@
const getAllProductVendors = /* GraphQL */ `
query getAllProductVendors($first: Int = 250, $cursor: String) {
products(first: $first, after: $cursor) {
pageInfo {
hasNextPage
hasPreviousPage
}
edges {
node {
vendor
}
cursor
query getAllProductVendors($shopIds: [ID]!) {
vendors(shopIds: $shopIds) {
nodes {
name
}
}
}