Link Existing Availability Rules

If you already have an availability entry in the database that you would like to assign to an object you can use the link argument in an object’s availability input.

The link argument accepts an array of strings, the strings being UIDs or External IDs of the availability entries to link.

mutation createEpisode {
  createEpisode(
    episode: {
      title: "Nier Automata ver1.1a - s01e02", 
      availability: {
        link: ["d53332c0-6ed6-4c97-996f-b5bc4982ba98", "always-availability-external-id"]
      }
    }) 
  {
    uid
    title
  }
}

Response:

{
  "data": {
    "createEpisode": {
      "uid": "ee884e98-f3e5-4929-b7ad-75b8fca1e64e",
      "title": "Nier Automata ver1.1a - s01e02"
    }
  }
}