followProfile

This operation executes following of a profile by a single profile

🔑 Requires authentication

This operation requires Bearer Token issued from our Authentication flow appended to the request headers. Please refer to Authentication page.

Interface

GraphQL Schema
input ProfileFollowInput {
  profileId: String!
  followProfileId: String!
}

type ProfileFollowResponse {
  id: ID!
  createdAt: DateTimeISO
  followingProfileId: String!
  profileId: String!
  contractAddress: String
  blockTimestamp: DateTimeISO
}

type Mutation {
 followProfile(input: ProfileFollowInput!): ProfileFollowResponse!
}

Inputs:

  1. profileId: [Required] Profile initiating the follow, aka. the child

  2. followProfileId: [Required] profileId of Profile to follow, aka. the parent

Operation

GraphQL Operation
mutation FollowProfile {
  followProfile(input: {
    profileId: "0x15",
    followProfileId: "0x10"
  }) {
    id
    createdAt
    followingProfileId
    profileId
    # ... other ProfileFollowResponse
  }
}

Response

JSON Response
{
  "data": {
    "followProfile": {
      "id": "f5b776fb-6476-4930-8505-80a3f4ac60ea",
      "createdAt": "2023-08-17T09:00:02.484Z",
      "followingProfileId": "0x10",
      "profileId": "0x15"
      // ... other ProfileFollowResponse fields
    }
  }
}

Last updated