# listTreeNodes (https://developer.godaddy.com/en/docs/references/rest/catalog/list/queries/listTreeNodes)

***

title: listTreeNodes
description: "Query `listTreeNodes` on the catalog subgraph (List)."
full: true
----------

query

Requires `commerce.product:read`.

Query `listTreeNodes` on the catalog subgraph (List).

## Required headers

| Header       | Required | Description                                                                                                                     |
| ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `x-store-id` | Yes      | ID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: `extensions.code: "UNAUTHENTICATED"`. |

Go to [Authentication](https://developer.godaddy.com/docs/api-users/auth) for credential setup.

## Arguments

* `after` `String` **optional**
* `before` `String` **optional**
* `createdAt` `CreatedAtFilter` **optional**
  * `gt` `String` **optional**
  * `lt` `String` **optional**
* `first` `Int` **optional**
* `hasParent` `Boolean` **optional**
* `id` `ListTreeNodeIdsFilter` **optional**
  * `in` `[String!]` **optional**
* `last` `Int` **optional**
* `listId` `ListIdFilter` **optional**
  * `eq` `String` **optional**
  * `in` `[String!]` **optional**
  * `isNull` `Boolean` **optional**
* `listStatus` `ListTreeNodeListStatusFilter` **optional** Default: `{"in":["ACTIVE","DRAFT"]}`.
  * `eq` `String` **optional**
  * `in` `[String!]` **optional**
* `listTreeId` `ListTreeIdFilter` **optional**
  * `eq` `String` **optional**
* `listTreeStatus` `ListTreeNodeListTreeStatusFilter` **optional**
  * `eq` `String` **optional**
  * `in` `[String!]` **optional**
* `orderBy` `ListTreeNodeOrderBy` **optional**
  * `createdAt` `OrderByDirectionEnum` **optional**
  * `id` `OrderByDirectionEnum` **optional**
  * `position` `OrderByDirectionEnum` **optional**
  * `updatedAt` `OrderByDirectionEnum` **optional**
* `paginationType` `PaginationType` **optional** Default: `"CURSOR"`.
* `parentNodeId` `ListTreeNodeParentNodeIdFilter` **optional**
  * `eq` `String` **optional**
* `referenceValue` `ReferenceValueFilter` **optional**
  * `eq` `String` **optional**
  * `in` `[String!]` **optional**
* `updatedAt` `UpdatedAtFilter` **optional**
  * `gt` `String` **optional**
  * `lt` `String` **optional**

## Possible returns

* `QueryListTreeNodesConnection` `QueryListTreeNodesConnection`

- `edges` `[QueryListTreeNodesConnectionEdge]` **nullable**
- `pageInfo` `PageInfo!` **non-null**
- `totalCount` `Int!` **non-null**
