title: How to create a Core Data Relationship in Swift
body: <p>I have two entities in my data model:  Student &lt;-->> Grade</p>
  
  <p>In Objective-C I can use the following line to link the relationship of my two objects:</p>
  
  <pre><code>[newStudent setValue:[NSSet setWithObject:newGrade] forKey:@"grades"];
  </code></pre>
  
  <p>However in Swift, there is no NSSet. How do I perform the same thing?</p>
  
  <pre><code>newStudent.setValue(??????, forKey: "grades")
  </code></pre>