{
boards(ids: 1234567890) {
id
name
columns {
title
id
type
}
groups {
title
id
}
items_page(limit: 500) {
cursor
items {
created_at
updated_at
id
name
group {
id
}
column_values {
id
text
value
}
}
}
}
}
Thank you @matis
i am using REST query
sample :{“query”:"{ boards{ id name columns { title id type } groups { title id } items { id name group { id } column_values { id text value }}}} "}
If you are referring to the format, you just need to put everything in the same line like this:
"query": "{boards(ids: 1234567890) {id name columns {title id type } groups { title id } items_page(limit: 500) { cursor items { created_at updated_at id name group { id} column_values { id text value} } } } }"
What @Matias.Monday posted is the JSON body of the request built from from the contents of the QUERY and VARIABLES panes in Postman by Postman.
What you want in the Postman QUERY pane is as follows:
query($boardIds: [ID!]){boards(ids: $boardId) {id name columns {title id type } groups { title id } items_page(limit: 500) { cursor items { created_at updated_at id name group { id} column_values { id text value} } } } }
Postman then puts that in the query key of the JSON it sends:
{
"query": "query($boardIds: [ID!]){boards(ids: $boardId) {id name columns {title id type } groups { title id } items_page(limit: 500) { cursor items { created_at updated_at id name group { id} column_values { id text value} } } } }",
"variables" : {
"boardIds: ["1234567890"]
}
}
In my example I’ve included the variables that you put in the right side of Postman - in this case for the boardID (which in a query is an array of IDs, which can be strings or numeric - i recommend standardizing on strings, since that is how they are returned in queries).
Postman takes the query and variables panes, and turns them into the above JSON (each one of course being in its respective key). GraphQL queries are simple strings, and treated as a single string when being turned into JSON by Postman.
{
boards(ids: 1259091456) {
id
name
columns {
title
id
type
}
groups {
title
id
}
items_page(limit: 500) {
cursor
items {
created_at
updated_at
id
name
group {
id
}
column_values {
id
text
value
}
}
}
}
}
Yes it is not GraphQL i need same result as above JSON, in graphQL
This Below is fetching data what i want i just need this JASON in graphQL
{
boards(ids: 1259091456) {
id
name
columns {
title
id
type
}
groups {
title
id
}
items_page(limit: 500) {
cursor
items {
created_at
updated_at
id
name
group {
id
}
column_values {
id
text
value
}
}
}
}
}