/** * çä¼¼ã³ã¼ã */ //ç´åã§IDãæå®ãã¦åå¾ããã®ã«ãé¢ããã const someEntity = someRepository.findById('some-id'); //Entityèªä½ã®åå¨ç¢ºèªãããã®ã¯è¯ãã... if(!someEntity) throw new Error('SomeEntity not found'); //IDã®åå¨ã¾ã§ç¢ºèªããªããã°ãããªãã®ããªããããµããã if (someEntity.id) { //someEntity.idã使ã£ãä½ãã®å¦ç } çæ³çã«ã¯ã Repositoryã«æ¸¡ãã¨ã(saveãªã©)ã¯IDãçºçªããã¦ããªããã¦ãè¯ã Repositoryããæãåºãã¨ã(findAll, findByIdãªã©)ã¯IDãçºçªããã¦ãããã¨ãä¿è¨¼ããã¦ãã ã¨ããã¢ãã«ãå®ç¾ãããã ã¨ãããã¨ã§ãTypeScriptã®Un
{{#tags}}- {{label}}
{{/tags}}