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": "8b8d6efd278d1ab0c9bca022",
"favorites": true
}
Response
{
"feedGetIntervals": [
{
"_id": "8596f1bb4a3fb22d5f37d98c",
"created": 1781183389241,
"config": {
"_id": "7b3a38b7715d7996879c5bcc",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
},
"posts": [
{
"_id": "4530afabe7e8b3f5891158e3",
"type": "example",
"from": "example",
"timestamp": "example",
"isFavorite": true
}
]
}
]
}
Arguments
| Name | Type | Description |
|---|---|---|
userRef | ID! | — |
favorites | Boolean | — |
Returns
[FeedInterval!]!