I have a document with a reference field objectId that I can fill out.
Is there a known way to find out if a field has already been filled?
You can use the method document.populated(path)( as described here ). It returns the _id used for the aggregate, and undefinedif the field was not filled.
document.populated(path)
undefined
Source: https://habr.com/ru/post/1538191/More articles:How can I programmatically copy ActiveModel validators from one model to another? - ruby | fooobar.comEditText error: duplicate content after clicking a restricted character - androidКак публиковать веб-сервис на веб-сайте - web-servicesR data.table setkey by dplyr :: group_by? - rGlimpse + MVC5 + Sitecore 7.2 - asp.net-mvc-5C ++: error when replacing a character - c ++Тип безопасности: снятие флажка с объекта на объект JAXBElement - javaERROR: ошибка 1067: недопустимое значение по умолчанию для ON UPDATE CURRENT_TIMESTAMP - mysqlUsing $? in bash function - bashРазличные параметры Regexp - rubyAll Articles