Skip to main content

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": "5d7fe704b33a053c7fed1a60",
"postRef": "d16ded0c4b6746c2564b1273"
}

Response

{
"feedSavePost": {
"_id": "b8547d8b247df84b48374688",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "cefa99e0cee15b6702e206ac",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "97b25c4741f8a26d088dfba2",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
}
}
}

Arguments

NameTypeDescription
userRefID!
postRefID!

Returns

FeedPost