Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Identity__my Dashboard Layout

Current user's saved dashboard layout for the given scope (null = use defaults). Requires a signed-in staff user.

QUERYidentity__myDashboardLayout(scope: DashboardLayoutScope!): DashboardLayout

Current user's saved dashboard layout for the given scope (null = use defaults). Requires a signed-in staff user.

Arguments

scope*DashboardLayoutScope!

Which console dashboard the layout belongs to

Value inADMINMERCHANT

Returns

  1. identity__myDashboardLayout
_id*ID!
createdAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

scope*DashboardLayoutScope!

Which console dashboard the layout belongs to

Value inADMINMERCHANT
tenant?String
updatedAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

userId*String!
widgets*
Example Request
query Identity__myDashboardLayout($scope: DashboardLayoutScope!) {  identity__myDashboardLayout(scope: $scope) {    _id    createdAt    scope    tenant    updatedAt    userId    widgets {      id      span      visible    }  }}
Variables
{  "scope": "ADMIN"}
Example Response
{  "data": {    "identity__myDashboardLayout": {      "_id": "1",      "createdAt": "<DateTime>",      "scope": "ADMIN",      "tenant": "string",      "updatedAt": "<DateTime>",      "userId": "string",      "widgets": [        {          "id": "string",          "span": "FULL",          "visible": true        }      ]    }  }}