小编Amm*_*jaz的帖子

AWS OpenSearch Service 与 MongoDB 的连接

有什么方法可以在不使用 DocumentDb 的情况下将 AWS OpenSearch 与 MongoDB 连接起来?我有一个基于 Nest.js 和 ReactJs 的应用程序,我想在其中使用 OpenSearch 服务

mongodb amazon-web-services aws-elasticsearch nestjs aws-documentdb-mongoapi

5
推荐指数
0
解决办法
978
查看次数

无效缩进,可以使用制表符或空格,但不能同时使用 jade

我有以下玉器代码可以正常工作

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)

node.js pug

3
推荐指数
1
解决办法
1万
查看次数