In the current state of the API V2, there are only 2 fields available for updates, id, and body. Most importantly however, we need the item the update belongs to and preferably the time it was created. I need to be able to send the most recent updates with information about the pulse it belongs to. We can create a query that looks like the following:
query{
updates (limit: 5){
id
body
}
}
to get the 5 most recent updates and by keeping track of the previous last id received to find which updates are new but now in order to get information about the pulse this update belongs to, i need to send another query like the following:
query {
boards (ids: $board_id){
items{
id
updates{
body
id
}
}
}
}
then search for the matching new id’s to actually use these updates for anything. This is not only slow but wastes complexity and could easily be improved by providing an item field inside of each update as well as information such as the user posting the update, the time it was posted, and anything else that exists inside of an update.