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": "b090e8657447ea9b31f23a93",
"favorites": true
}
Response
{
"feedGetIntervals": [
{
"_id": "ee44748f75c9f04d1293e7b2",
"created": 1720708154048,
"config": {
"_id": "565cd810df3d9ac8754c6ca8",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
},
"posts": [
{
"_id": "605f37ce62703ad3b8214349",
"type": "example",
"from": "example",
"timestamp": "example",
"isFavorite": true
}
]
}
]
}
Arguments
| Name | Type | Description |
|---|---|---|
userRef | ID! | — |
favorites | Boolean | — |
Returns
[FeedInterval!]!