odata-v4-server
odata-v4-server copied to clipboard
Do you have an example to show how to self-reference the model
` @Edm.Annotate({ term: "UI.DisplayName", string: "Products" })
export class Product{ @Edm.Key @Edm.Computed @Edm.String @Edm.Convert(toObjectID) @Edm.Annotate({ term: "UI.DisplayName", string: "Product identifier" }, { term: "UI.ControlHint", string: "ReadOnly" }) _id:ObjectID @Edm.ForeignKey("Product") @Edm.EntityType(Edm.ForwardRef(() => Product)) @Edm.Partner("Product") Product:Product UnitPrice:number }
`