Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Inventory__seed Dataset For Theme

Returns the demo dataset suggested for a given theme slug (e.g. when activating a theme), or null if that theme has no suggested dataset. Requires a signed-in staff user. Needs the `inventory__Product` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).

QUERYinventory__seedDatasetForTheme(themeSlug: String!): SeedDatasetSummary

Returns the demo dataset suggested for a given theme slug (e.g. when activating a theme), or null if that theme has no suggested dataset. Requires a signed-in staff user. Needs the inventory__Product read permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

themeSlug*String!

Returns

  1. inventory__seedDatasetForTheme
collectionCount*Int!
description*String!
id*String!
includesImages*Boolean!
includesVariants*Boolean!
name*String!
productCount*Int!
Example Request
query Inventory__seedDatasetForTheme($themeSlug: String!) {  inventory__seedDatasetForTheme(themeSlug: $themeSlug) {    collectionCount    description    id    includesImages    includesVariants    name    productCount  }}
Variables
{  "themeSlug": "string"}
Example Response
{  "data": {    "inventory__seedDatasetForTheme": {      "collectionCount": 10,      "description": "string",      "id": "string",      "includesImages": true,      "includesVariants": true,      "name": "string",      "productCount": 10    }  }}