Board Queries
A Board Query allows you to fetch data on boards that exists on the database of your Quabbly account.
Fetch Boards
operator name : boards
Fetching Boards in your Quabbly account database requires the query operator. The sample query below consists of operation name (board) and fields such as id, boardSecret, createdBy and createdTime to be returned in the data response.
query {
boards{
id
boardSecret {
name
boardSize
}
createdBy
createdTime
}
}
{
"data": {
"boards": [
{
"id": "6170c72340dc970001b8ed06",
"boardSecret": {
"name": "Simple CRM",
"description": "This a simple CRM board",
"boardSize": "SMALL"
},
"createdBy": "Praise Adediji",
"createdTime": "Thu Oct 21 01:49:23 GMT 2021"
},
{
"id": "6170c776354d40000159c957",
"boardSecret": {
"name": "Deal Flow",
"description": "This a Venture Deal flow board",
"boardSize": "SMALL"
},
"createdBy": "Praise Adediji",
"createdTime": "Thu Oct 21 01:50:46 GMT 2021",
}
]
}
}
Fetch Board by id
operator name : board
Fetching a Board by id returns a specific board from all boards that exist in your Quabbly account database. Here the boardId is passed as an argument to return a specific board.
query{
board(boardId:"614cc5198d57e60001e17963"){
id
boardSecret{
name
description
boardSize
}
colour
icon
}
}
{
"data": {
"board": {
"id": "614cc5198d57e60001e17963",
"boardSecret": {
"name": "Sample Board 3",
"description": "This is the thrid sample board",
"boardSize": "medium"
},
"colour": "blue",
"icon": "smile"
}
}
}
Fetch Number of Boards
operator name : boardCount
Allows you to know the number of boards created on your account. It returns an integer value type.
query{
boardCount
}
{
"data": {
"boardCount": 25
}
}
Updated about 3 years ago