Skip to content
DocsTry Aspire
DocsTry

IResource.withRelationship

Method
📦 Aspire.Hosting v13.4.0
interface IResource {
// ... omitted for brevity
withRelationship(
resourceBuilder: IResource,
type: string): IResource;
}

Signature

methodwithRelationshipbuilder
Adds a relationship to another resource using its builder.
withRelationship(
resourceBuilder: IResource,
type: string): IResource
resourceBuilderIResource
typestring
IResource

Defined on

This method is defined on the following type: