Mutation
mutation AddFavorite($input: AddFavoriteInput!) {
addFavorite(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
favorite {
blockIdentifier
blockType
id
objectId
tenantId
userId
}
}
}Variables
{
"input": {
"blockIdentifier": "string",
"blockType": "NONE"
}
}Response
{
"data": {
"addFavorite": {
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
],
"favorite": {
"blockIdentifier": "string",
"blockType": "NONE",
"id": "id",
"objectId": "string",
"tenantId": "value",
"userId": "value"
}
}
}
}Mutations
addFavorite
MUTATION
addFavorite(input: AddFavoriteInput!): AddFavoritePayload!Arguments
input
required
Returns
errors
favorite
Mutation
mutation AddFavorite($input: AddFavoriteInput!) {
addFavorite(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
favorite {
blockIdentifier
blockType
id
objectId
tenantId
userId
}
}
}Variables
{
"input": {
"blockIdentifier": "string",
"blockType": "NONE"
}
}Response
{
"data": {
"addFavorite": {
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
],
"favorite": {
"blockIdentifier": "string",
"blockType": "NONE",
"id": "id",
"objectId": "string",
"tenantId": "value",
"userId": "value"
}
}
}
}Was this page helpful?