withRelationship
Method
interface ContainerResource { // ... omitted for brevity withRelationship( resourceBuilder: IResource, type: string): IResource;}Signature
method
withRelationship builderAdds a relationship to another resource using its builder.
withRelationship( resourceBuilder: IResource, type: string): IResourceParameters
resourceBuilder IResource The resource builder that the relationship is to.typestringThe relationship type.Returns
IResource Applies to
This method applies to the following types: