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