Skip to main content

ProductSummary

Headline product figures.

type ProductSummary {
activeProducts: Int!
inactiveProducts: Int!
lastUpdated: DateTime!
lowStockProducts: Int!
outOfStockProducts: Int!
productsByCategory: [ProductsByCategory!]!
recentProducts: [Product!]!
totalInventoryValue: Float!
totalProducts: Int!
}

Fields​

ProductSummary.activeProducts ● Int! non-null scalar​

How many are active.

ProductSummary.inactiveProducts ● Int! non-null scalar​

How many are inactive.

ProductSummary.lastUpdated ● DateTime! non-null scalar​

When the figures were worked out.

ProductSummary.lowStockProducts ● Int! non-null scalar​

How many are low on stock.

ProductSummary.outOfStockProducts ● Int! non-null scalar​

How many are out of stock.

ProductSummary.productsByCategory ● [ProductsByCategory!]! non-null object​

How many products each category holds.

ProductSummary.recentProducts ● [Product!]! non-null object​

The most recently added products.

ProductSummary.totalInventoryValue ● Float! non-null scalar​

The value of all stock.

ProductSummary.totalProducts ● Int! non-null scalar​

How many products there are.

Returned By​

productSummary query