Skip to main content

feedGetIntervals Query

Description​

Returns the feed grouped into hourly intervals. Pass favorites: true to restrict to the user's saved posts.

query feedGetIntervals($userRef: ID!, $favorites: Boolean) {
feedGetIntervals(userRef: $userRef, favorites: $favorites) {
_id
created
config {
_id
name
thumbnail
uri
}
posts {
_id
type
from
timestamp
isFavorite
}
}
}

Variables​

{
"userRef": "ea848ccedc57e1e947566b1d",
"favorites": true
}

Response​

{
"feedGetIntervals": [
{
"_id": "ec323d0161e33f9f5fbf2b07",
"created": 1734671716623,
"config": {
"_id": "13b23572ec38d1b10a3cab2f",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
},
"posts": [
{
"_id": "9a25df730e316ce73c238d39",
"type": "example",
"from": "example",
"timestamp": "example",
"isFavorite": true
}
]
}
]
}

Arguments​

NameTypeDescription
userRefID!—
favoritesBoolean—

Returns​

[FeedInterval!]!