mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
update codegen to include new vendors query and implement vendors query
Signed-off-by: Loan Laux <loan@outgrow.io>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user