.Relate()Creates a relation between records.
Method Syntaxawait db.Relate(table, , , data)
| Arguments | Description | ||
|---|---|---|---|
thing required | The table name or a   | ||
@in required | The edge of the relation.  | ||
@out required | The other edge of the relation.  | ||
data optional | The document / record data to insert.  | ||
cancellationToken optional | The cancellationToken enables graceful cancellation of asynchronous operations.  | 
var data = new WroteRelation { CreatedAt = DateTime.UtcNow, NumberOfPages = 14 }; await db.Relate<WroteRelation, WroteRelation>( "wrote", ("user", "one"), ("post", "one"), data );