Query
query QueryRestockSuggestions($supplierId: ID!) {
QueryRestockSuggestions(supplierId: $supplierId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
itemId
supplierId
warehouseId
itemNumber
itemName
productGroup
}
}
nodes {
itemId
supplierId
warehouseId
itemNumber
itemName
productGroup
}
totalCount
}
}Variables
{
"supplierId": "id"
}Response
{
"data": {
"QueryRestockSuggestions": {
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"itemId": "id",
"supplierId": "id",
"warehouseId": "id",
"itemNumber": "string",
"itemName": "string",
"productGroup": "string"
}
}
],
"nodes": [
{
"itemId": "id",
"supplierId": "id",
"warehouseId": "id",
"itemNumber": "string",
"itemName": "string",
"productGroup": "string"
}
],
"totalCount": 1
}
}
}Queries
QueryRestockSuggestions
Generates restock suggestions for a given supplier and time frame. The calculation is performed synchronously and returns the same data the on-prem Wawi shows under Beschaffung - Bestellvorschlaege.
QUERY
QueryRestockSuggestions(supplierId: ID!, timeFrameFrom: DateTime, timeFrameTo: DateTime, timeFrameDays: Int, warehouseId: ID, first: Int, after: String, last: Int, before: String): QueryRestockSuggestionsConnectionArguments
supplierId
ID!
required
timeFrameFrom
DateTime
timeFrameTo
DateTime
timeFrameDays
Int
warehouseId
ID
first
Int
Returns the first n elements from the list.
after
String
Returns the elements in the list that come after the specified cursor.
last
Int
Returns the last n elements from the list.
before
String
Returns the elements in the list that come before the specified cursor.
pageInfo
Information to aid in pagination.
edges
A list of edges.
nodes
A flattened list of the nodes.
totalCount
Int!
Identifies the total count of items in the connection.
Query
query QueryRestockSuggestions($supplierId: ID!) {
QueryRestockSuggestions(supplierId: $supplierId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
itemId
supplierId
warehouseId
itemNumber
itemName
productGroup
}
}
nodes {
itemId
supplierId
warehouseId
itemNumber
itemName
productGroup
}
totalCount
}
}Variables
{
"supplierId": "id"
}Response
{
"data": {
"QueryRestockSuggestions": {
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"itemId": "id",
"supplierId": "id",
"warehouseId": "id",
"itemNumber": "string",
"itemName": "string",
"productGroup": "string"
}
}
],
"nodes": [
{
"itemId": "id",
"supplierId": "id",
"warehouseId": "id",
"itemNumber": "string",
"itemName": "string",
"productGroup": "string"
}
],
"totalCount": 1
}
}
}Was this page helpful?