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