Journey
Retrieve a program's journey content
Use the currentJourneys
query to retrieve the journey content for the program to which the user is currently set.
Available fields
Field | Type | Description |
| Journey Database ID | Profile Journey database id |
| String | Journey ID. use this id to update a Journey Status |
| JourneyStatus | JourneyStatus enum. |
Example
{
currentJourneys {
edges {
node {
databaseId,
id,
status,
dashboard {
title,
subTitle,
daysIntoProgram,
pdfs,
dashboardDialogs {
dialog {
name,
defaultJump,
type,
title,
attachment,
video,
videoThumbnail,
messages,
taskList {
id,
name
taskItems {
keyHash,
name,
isCompleted
}
}
}
}
}
}
}
}
}
{
'data': {
'currentJourneys': {
'edges': [
{
'node': {
'databaseId': '86716595-9ab4-4914-bc0f-7205afa9f0d4',
'status': 'OPEN',
'dashboard': {
'title': 'THIS IS A TITLE',
'subTitle': None,
'daysIntoProgram': 0,
'pdfs': [
],
'dashboardDialogs': [
{
'dialog': {
'name': '0testGRAPHQLTaskHeader',
'defaultJump': '',
'type': 'text',
'title': None,
'attachment': {
'type': 'progress-bar',
'progress': 0,
'left_text': '10 DAYS LEFT',
'max_progress': 10,
'progress_text': 'DAY 0/10'
},
'video': '',
'videoThumbnail': 'https://sg-data.storage.googleapis.com/images_bucket/none-30cb53f2-006b-4588-9ba7-35d916bd1670.png',
'messages': [
"This is like the subtitle"
],
'taskList': None
}
},
{
'dialog': {
'name': '0testGRAPHQLTaskTaskList',
'defaultJump': '',
'type': 'task-list',
'title': None,
'attachment': None,
'video': '',
'videoThumbnail': 'https://sg-data.storage.googleapis.com/images_bucket/none-30cb53f2-006b-4588-9ba7-35d916bd1670.png',
'messages': [
],
'taskList': {
'id': 'VGFza0xpc3Q6OGViYjU4ZWYtOGY3My00Yjg4LTk3ZGUtOWQyNDEyN2U0ZGQ0',
'name': 'day0testGRAPHQLTaskTaskList',
'taskItems': [
{
'keyHash': 'd888ffa733e035c4b8d58a7564a75663',
'name': 'This is a task item - 0.',
'isCompleted': False
},
{
'keyHash': '1b2ddd544febc11d2454dd263593fa6f',
'name': 'This is a task item - 1.',
'isCompleted': False
},
{
'keyHash': '46e81a359343ae13c40a4067c7008038',
'name': 'This is a task item - 2.',
'isCompleted': False
}
]
}
}
},
{
'dialog': {
'name': '0testGRAPHQLTaskVideo',
'defaultJump': '',
'type': 'video',
'title': None,
'attachment': None,
'video': '',
'videoThumbnail': 'https://sg-data.storage.googleapis.com/images_bucket/none-30cb53f2-006b-4588-9ba7-35d916bd1670.png',
'messages': [
],
'taskList': None
}
}
]
}
}
},
{
'node': {
'databaseId': '9c7c40cd-256a-43bd-bed9-8211e86e71a6',
'status': 'CLOSE',
'dashboard': {
'title': 'THIS IS A TITLE',
'subTitle': None,
'daysIntoProgram': 1,
'pdfs': [
],
'dashboardDialogs': [
{
'dialog': {
'name': '1testGRAPHQLTaskHeader',
'defaultJump': '',
'type': 'text',
'title': None,
'attachment': {
'type': 'progress-bar',
'progress': 1,
'left_text': '9 DAYS LEFT',
'max_progress': 10,
'progress_text': 'DAY 1/10'
},
'video': '',
'videoThumbnail': 'https://sg-data.storage.googleapis.com/images_bucket/none-30cb53f2-006b-4588-9ba7-35d916bd1670.png',
'messages': [
],
'taskList': None
}
},
{
'dialog': {
'name': '1testGRAPHQLTaskTaskList',
'defaultJump': '',
'type': 'task-list',
'title': None,
'attachment': None,
'video': '',
'videoThumbnail': 'https://sg-data.storage.googleapis.com/images_bucket/none-30cb53f2-006b-4588-9ba7-35d916bd1670.png',
'messages': [
],
'taskList': {
'id': 'VGFza0xpc3Q6ZTk3ZWM1MTgtMzA4NC00MDZiLTg2YzAtMDU3NjdjY2MwMjNi',
'name': 'day1testGRAPHQLTaskTaskList',
'taskItems': [
{
'keyHash': '319780802eb9f8b391bebfb1133795ca',
'name': 'This is a task item - 0.',
'isCompleted': False
},
{
'keyHash': 'c6b2468677583a64d3b5b20c86f07c74',
'name': 'This is a task item - 1.',
'isCompleted': False
},
{
'keyHash': 'd74cdd8ccd4661102a7151e8a3036ed0',
'name': 'This is a task item - 2.',
'isCompleted': False
}
]
}
}
},
{
'dialog': {
'name': '1testGRAPHQLTaskVideo',
'defaultJump': '',
'type': 'video',
'title': None,
'attachment': None,
'video': '',
'videoThumbnail': 'https://sg-data.storage.googleapis.com/images_bucket/none-30cb53f2-006b-4588-9ba7-35d916bd1670.png',
'messages': [
],
'taskList': None
}
}
]
}
}
},
]
}
}
}
Last updated