feedSavePost Mutation
Description
Toggles a feed post as a favorite for the given user.
mutation feedSavePost($userRef: ID!, $postRef: ID!) {
feedSavePost(userRef: $userRef, postRef: $postRef) {
_id
type
from
timestamp
item {
_id
artwork
uri
isPreorder
hasAudio
}
isFavorite
config {
_id
name
thumbnail
uri
}
}
}
Variables
{
"userRef": "ca4efc818de9f3a3323f6ffa",
"postRef": "4043d06602954923859a25c3"
}
Response
{
"feedSavePost": {
"_id": "6bf2171388a36bf77d543c5f",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "638060d00b695de356bd739c",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "1f57396228397ed16a1ac14f",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
userRef | ID! | — |
postRef | ID! | — |