有什么方法可以在不使用 DocumentDb 的情况下将 AWS OpenSearch 与 MongoDB 连接起来?我有一个基于 Nest.js 和 ReactJs 的应用程序,我想在其中使用 OpenSearch 服务
mongodb amazon-web-services aws-elasticsearch nestjs aws-documentdb-mongoapi
我有以下玉器代码可以正常工作
div.container
h3.entry-title(style='margin-top:25px;') #{result.post_title}
div
p.text-left.pst <i class="fa fa-calendar"></i> #{result.post_date}
div.panel
!{result.post_content}
-if(typeof userType !== 'undefined' && userType=='admin')
a.btn.red.marginTop(href='/ebs' ) Cancel
div.page-footer
div.page-footer-inner
Copyright Copyright All rights reserved.
Run Code Online (Sandbox Code Playgroud)
但是当我尝试插入像下面这样的 if 语句时,它给了我缩进错误
div.container
h3.entry-title(style='margin-top:25px;') #{result.post_title}
div
-if(result.post_date!='-1')
p.text-left.pst <i class="fa fa-calendar"></i> #{result.post_date}
div.panel
!{result.post_content}
-if(typeof userType !== 'undefined' && userType=='admin')
a.btn.red.marginTop(href='/ebs' ) Cancel
div.page-footer
div.page-footer-inner
Copyright Copyright All rights reserved.
Run Code Online (Sandbox Code Playgroud)