Query
query Folders($dataSourceId: ID!) {
folders(dataSourceId: $dataSourceId) {
edges {
cursor
node {
activeTask {
__typename
}
children {
__typename
}
createdAt
createdByUser
dataSource {
__typename
}
dataSourceId
}
}
nodes {
activeTask {
artifacts {
__typename
}
awaitingConfirmation
configuration {
__typename
... on CardsImportConfiguration {
__typename
}
}
createdAt
createdBy
details {
__typename
... on CardsImportDetails {
__typename
}
}
}
children {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
createdAt
createdByUser
dataSource {
cardDefinitions {
__typename
}
createdAt
dataProviders {
__typename
}
deletedAt
description
entries {
__typename
}
}
dataSourceId
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Variables
{
"dataSourceId": "id"
}Response
{
"data": {
"folders": {
"edges": [
{
"cursor": "string",
"node": {
"activeTask": {
"__typename": "QueuedTask"
},
"children": {
"__typename": "ChildrenConnection"
},
"createdAt": "value",
"createdByUser": "value",
"dataSource": {
"__typename": "DataSource"
},
"dataSourceId": "id"
}
}
],
"nodes": [
{
"activeTask": {
"artifacts": [
{
"__typename": "QueuedTaskArtifact"
}
],
"awaitingConfirmation": true,
"configuration": {
"__typename": "CardsImportConfiguration"
},
"createdAt": "value",
"createdBy": "value",
"details": {
"__typename": "CardsImportDetails"
}
},
"children": {
"edges": [
{
"__typename": "ChildrenEdge"
}
],
"nodes": [
{
"__typename": "Folder"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"createdAt": "value",
"createdByUser": "value",
"dataSource": {
"cardDefinitions": {
"__typename": "CardDefinitionsConnection"
},
"createdAt": "value",
"dataProviders": {
"__typename": "DataProvidersConnection"
},
"deletedAt": "value",
"description": "string",
"entries": {
"__typename": "SourceEntriesConnection"
}
},
"dataSourceId": "id"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Queries
folders
Lists every folder of a source at all levels, sorted by displayName unless order is given.
QUERY
folders(after: String, before: String, dataSourceId: ID!, first: Int, last: Int, order: [FolderSortInput!], where: FolderFilterInput): FoldersConnectionArguments
after
String
Returns the elements in the list that come after the specified cursor.
before
String
Returns the elements in the list that come before the specified cursor.
dataSourceId
ID!
required
Global id of the source (DataSource.id).
first
Int
Returns the first n elements from the list.
last
Int
Returns the last n elements from the list.
order
where
Returns
edges
[FoldersEdge!]
A list of edges.
nodes
[Folder!]
A flattened list of the nodes.
pageInfo
Information to aid in pagination.
totalCount
Int!
Identifies the total count of items in the connection.
Query
query Folders($dataSourceId: ID!) {
folders(dataSourceId: $dataSourceId) {
edges {
cursor
node {
activeTask {
__typename
}
children {
__typename
}
createdAt
createdByUser
dataSource {
__typename
}
dataSourceId
}
}
nodes {
activeTask {
artifacts {
__typename
}
awaitingConfirmation
configuration {
__typename
... on CardsImportConfiguration {
__typename
}
}
createdAt
createdBy
details {
__typename
... on CardsImportDetails {
__typename
}
}
}
children {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
createdAt
createdByUser
dataSource {
cardDefinitions {
__typename
}
createdAt
dataProviders {
__typename
}
deletedAt
description
entries {
__typename
}
}
dataSourceId
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Variables
{
"dataSourceId": "id"
}Response
{
"data": {
"folders": {
"edges": [
{
"cursor": "string",
"node": {
"activeTask": {
"__typename": "QueuedTask"
},
"children": {
"__typename": "ChildrenConnection"
},
"createdAt": "value",
"createdByUser": "value",
"dataSource": {
"__typename": "DataSource"
},
"dataSourceId": "id"
}
}
],
"nodes": [
{
"activeTask": {
"artifacts": [
{
"__typename": "QueuedTaskArtifact"
}
],
"awaitingConfirmation": true,
"configuration": {
"__typename": "CardsImportConfiguration"
},
"createdAt": "value",
"createdBy": "value",
"details": {
"__typename": "CardsImportDetails"
}
},
"children": {
"edges": [
{
"__typename": "ChildrenEdge"
}
],
"nodes": [
{
"__typename": "Folder"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"createdAt": "value",
"createdByUser": "value",
"dataSource": {
"cardDefinitions": {
"__typename": "CardDefinitionsConnection"
},
"createdAt": "value",
"dataProviders": {
"__typename": "DataProvidersConnection"
},
"deletedAt": "value",
"description": "string",
"entries": {
"__typename": "SourceEntriesConnection"
}
},
"dataSourceId": "id"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"totalCount": 1
}
}
}Was this page helpful?