``` val kotlinTag = transaction { Tag.new { ...
# exposed
t
Copy code
val kotlinTag = transaction {
    Tag.new {
      name = "kotlin"
      version = "1.3.21"
      type = "language"
    }
  }

  val ktorTag = transaction {
    Tag.new {
      name = "ktor"
      version = "1.0.0"
      type = "framework"
    }
  }

  val post = transaction {
    Post.new {
      title = "Software Engineer"
      description = "New job"
      wage = 80000.00.toBigDecimal()
      city = "Chicago"
      state = "Illinois"
      country = "United State of America"
      employmentType = "On-site"
      seniority = "Senior"
    }
  }

  transaction {
    post.tags = SizedCollection(listOf(kotlinTag))
  }

  transaction {
    post.tags = SizedCollection(post.tags.plus(ktorTag))
  }

  transaction {
    val posts = Post.all()
    posts.first().tags.forEach {
      println(it.name)
    }
  }
is what i have. im curious if doing
post.tags = SizedCollection(post.tags.plus(ktorTag))
is the correct way
👌 1