Warehouse
Represents warehouse.
type Warehouse implements Node, ObjectWithMetadata {
id: ID!
privateMetadata: [MetadataItem!]!
privateMetafield(key: String!): String
privateMetafields(keys: [String!]): Metadata
metadata: [MetadataItem!]!
metafield(key: String!): String
metafields(keys: [String!]): Metadata
name: String!
slug: String!
email: String!
isPrivate: Boolean!
address: Address!
companyName: String! @deprecated
clickAndCollectOption: WarehouseClickAndCollectOptionEnum!
shippingZones(
before: String
after: String
first: Int
last: Int
): ShippingZoneCountableConnection!
stocks(
before: String
after: String
first: Int
last: Int
): StockCountableConnection
externalReference: String
}
Fields
Warehouse.id
● ID!
non-null scalar miscellaneous
The ID of the warehouse.
Warehouse.privateMetadata
● [MetadataItem!]!
non-null object miscellaneous
List of private metadata items. Requires staff permissions to access.
Warehouse.privateMetafield
● String
scalar miscellaneous
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
Added in Saleor 3.3
Warehouse.privateMetafield.key
●String!
non-null scalar miscellaneous
Warehouse.privateMetafields
● Metadata
scalar miscellaneous
Private metadata. Requires staff permissions to access. Use
Added in Saleor 3.3keys
to control which fields you want to include. The default is to include everything.
Warehouse.privateMetafields.keys
●[String!]
list scalar miscellaneous
Warehouse.metadata
● [MetadataItem!]!
non-null object miscellaneous
List of public metadata items. Can be accessed without permissions.
Warehouse.metafield
● String
scalar miscellaneous
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
Added in Saleor 3.3
Warehouse.metafield.key
●String!
non-null scalar miscellaneous
Warehouse.metafields
● Metadata
scalar miscellaneous
Public metadata. Use
Added in Saleor 3.3keys
to control which fields you want to include. The default is to include everything.
Warehouse.metafields.keys
●[String!]
list scalar miscellaneous
Warehouse.name
● String!
non-null scalar miscellaneous
Warehouse name.
Warehouse.slug
● String!
non-null scalar miscellaneous
Warehouse slug.
Warehouse.email
● String!
non-null scalar miscellaneous
Warehouse email.
Warehouse.isPrivate
● Boolean!
non-null scalar miscellaneous
Determine if the warehouse is private.
Warehouse.address
● Address!
non-null object users
Address of the warehouse.
Warehouse.companyName
● String!
deprecated non-null scalar miscellaneous
DEPRECATEDThis field will be removed in Saleor 4.0. Use
Address.companyName
instead.Warehouse company name.
Warehouse.clickAndCollectOption
● WarehouseClickAndCollectOptionEnum!
non-null enum products
Click and collect options: local, all or disabled.
Added in Saleor 3.1
Warehouse.shippingZones
● ShippingZoneCountableConnection!
non-null object shipping
Shipping zones supported by the warehouse.
Warehouse.shippingZones.before
●String
scalar miscellaneousReturn the elements in the list that come before the specified cursor.
Warehouse.shippingZones.after
● String
scalar miscellaneous
Return the elements in the list that come after the specified cursor.
Warehouse.shippingZones.first
● Int
scalar miscellaneous
Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
Warehouse.shippingZones.last
● Int
scalar miscellaneous
Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
Warehouse.stocks
● StockCountableConnection
object products
Stocks that belong to this warehouse.
Added in Saleor 3.20
Warehouse.stocks.before
●String
scalar miscellaneousReturn the elements in the list that come before the specified cursor.
Warehouse.stocks.after
● String
scalar miscellaneous
Return the elements in the list that come after the specified cursor.
Warehouse.stocks.first
● Int
scalar miscellaneous
Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
Warehouse.stocks.last
● Int
scalar miscellaneous
Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
Warehouse.externalReference
● String
scalar miscellaneous
External ID of this warehouse.
Added in Saleor 3.10
Interfaces
Node
interface miscellaneous
An object with an ID
ObjectWithMetadata
interface miscellaneous
Returned By
warehouse
query
Member Of
Allocation
object ● Channel
object ● Checkout
object ● Fulfillment
object ● Order
object ● OrderEvent
object ● ProductVariantBackInStock
object ● ProductVariantOutOfStock
object ● ProductVariantStockUpdated
object ● ShippingZone
object ● Stock
object ● WarehouseCountableEdge
object ● WarehouseCreate
object ● WarehouseCreated
object ● WarehouseDelete
object ● WarehouseDeleted
object ● WarehouseMetadataUpdated
object ● WarehouseShippingZoneAssign
object ● WarehouseShippingZoneUnassign
object ● WarehouseUpdate
object ● WarehouseUpdated
object
Implemented By
DeliveryMethod
union