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": "c84c3ff26848398e0ae1f6af",
"postRef": "9db45b8579f84c4aecb00a83"
}
Response
{
"feedSavePost": {
"_id": "e6c898d402d0f34bd5815c42",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "1b5b3f6b765d8c9dbee3e928",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "c03cb93508e55805841a23d1",
"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! | — |