API Reference > ecschema-Metadata > Metadata > EntityClass > createNavigationProperty createNavigationProperty MethodProtected createNavigationProperty(name: string, relationship: string | RelationshipClass, direction: string | StrengthDirection): Promise<NavigationProperty> Parameter Type Description name string relationship string | RelationshipClass direction string | StrengthDirection Returns - Promise<NavigationProperty> Defined in core/ecschema-metadata/src/Metadata/EntityClass.ts Line 154 Last Updated: 12 June, 2024