Created
August 7, 2022 19:59
-
-
Save etherealite/074966a3512a9cf92f0c1237ef367e8b to your computer and use it in GitHub Desktop.
Shopify Inventory Adjustment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query InventoryAdjustments($first: Int, $last: Int, $after: String, $before: String, $locationId: ID, $variantId: ID) { | |
location(id: $locationId) { | |
id | |
name | |
__typename | |
} | |
inventoryHistory( | |
first: $first | |
last: $last | |
after: $after | |
before: $before | |
locationId: $locationId | |
variantId: $variantId | |
) { | |
edges { | |
node { | |
id | |
createdAt | |
reason | |
staffMember { | |
id | |
name | |
__typename | |
} | |
app { | |
id | |
title | |
__typename | |
} | |
referenceDocumentObject { | |
__typename | |
... on Order { | |
id | |
name | |
__typename | |
} | |
... on Location { | |
id | |
name | |
__typename | |
} | |
... on InventoryTransfer { | |
id | |
name | |
__typename | |
} | |
... on InventoryMovement { | |
id | |
name | |
__typename | |
} | |
... on PurchaseOrder { | |
id | |
name | |
__typename | |
} | |
... on Refund { | |
id | |
returnName | |
order { | |
id | |
name | |
__typename | |
} | |
__typename | |
} | |
} | |
changes(locationId: $locationId, variantId: $variantId) { | |
name | |
quantityAfterChange | |
delta | |
__typename | |
} | |
__typename | |
} | |
cursor | |
__typename | |
} | |
pageInfo { | |
hasNextPage | |
hasPreviousPage | |
__typename | |
} | |
__typename | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample parameters for this query
GIDs are redacted.