ToggleLikeMutation is an interface representing the variables to toggle a like. It includes the id of the likeable object and the type of the likeable object.

interface ToggleLikeVariables {
    id: number;
    type: LikeableType;
}

Properties

Properties

id: number

id is a number representing the id of the likeable object.

type is a string representing the type of the likeable object.