mutation

followById

Add a product, brand, or item to the user's followed list by collection Id.
Arguments
collectionType
String!
Required
Type of collection followed, i.e. products, brands, or collections.
collectionId
String!
Required
The ID of the collection type.
Response
Required
A unique identifier for the follow operation, which can be used to reference or track the follow status.
message
String!
Required
A message indicating the result of the follow or unfollow operation. This could be a confirmation message or an error message.
Mutation
1mutation followById($collectionType: String!, $collectionId: String!) {
2 followById(collectionType: $collectionType, collectionId: $collectionId) {
3 id
4 message
5 }
6}
Try it
Input Variables
1{
2 "collectionType": "collectionType",
3 "collectionId": "collectionId"
4}
Response
1{
2 "followById": {
3 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
4 "message": "message"
5 }
6}