<small id='FWX1V'></small><noframes id='FWX1V'>

    <bdo id='FWX1V'></bdo><ul id='FWX1V'></ul>
<i id='FWX1V'><tr id='FWX1V'><dt id='FWX1V'><q id='FWX1V'><span id='FWX1V'><b id='FWX1V'><form id='FWX1V'><ins id='FWX1V'></ins><ul id='FWX1V'></ul><sub id='FWX1V'></sub></form><legend id='FWX1V'></legend><bdo id='FWX1V'><pre id='FWX1V'><center id='FWX1V'></center></pre></bdo></b><th id='FWX1V'></th></span></q></dt></tr></i><div id='FWX1V'><tfoot id='FWX1V'></tfoot><dl id='FWX1V'><fieldset id='FWX1V'></fieldset></dl></div>
  • <legend id='FWX1V'><style id='FWX1V'><dir id='FWX1V'><q id='FWX1V'></q></dir></style></legend>

      1. <tfoot id='FWX1V'></tfoot>

        Sequelize include - 不包括(删除)数据透视数据

        时间:2023-09-03

          • <bdo id='mCPGH'></bdo><ul id='mCPGH'></ul>

              <small id='mCPGH'></small><noframes id='mCPGH'>

                  <tbody id='mCPGH'></tbody>
                <legend id='mCPGH'><style id='mCPGH'><dir id='mCPGH'><q id='mCPGH'></q></dir></style></legend>
                <tfoot id='mCPGH'></tfoot>

                  <i id='mCPGH'><tr id='mCPGH'><dt id='mCPGH'><q id='mCPGH'><span id='mCPGH'><b id='mCPGH'><form id='mCPGH'><ins id='mCPGH'></ins><ul id='mCPGH'></ul><sub id='mCPGH'></sub></form><legend id='mCPGH'></legend><bdo id='mCPGH'><pre id='mCPGH'><center id='mCPGH'></center></pre></bdo></b><th id='mCPGH'></th></span></q></dt></tr></i><div id='mCPGH'><tfoot id='mCPGH'></tfoot><dl id='mCPGH'><fieldset id='mCPGH'></fieldset></dl></div>
                • 本文介绍了Sequelize include - 不包括(删除)数据透视数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用节点的 Sequelize 包.我有一个典型的包含人对多的关系.

                  I'm using the Sequelize package for node. I have a typical include on man to many relationship.

                  Item.findAll({
                      include: {model: Blah: as 'blahs'}
                  });
                  

                  一切正常,但它返回每个子项目的数据透视集.我不需要它.有什么方法可以禁用它或指定所需的数据透视字段?

                  All works well but it returns the set with the pivot data on each sub item. I don't need it. Is there any way to disable it or to specify the pivot fields needed?

                  推荐答案

                  找到我的答案:

                  {model: Model, as: 'model', through: {attributes: []}}
                  

                  这篇关于Sequelize include - 不包括(删除)数据透视数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:sequelize, Statement(where) in statement(where) 下一篇:Postgres sequelize 原始查询以获取计数返回字符串值

                  相关文章

                  <i id='dYRS5'><tr id='dYRS5'><dt id='dYRS5'><q id='dYRS5'><span id='dYRS5'><b id='dYRS5'><form id='dYRS5'><ins id='dYRS5'></ins><ul id='dYRS5'></ul><sub id='dYRS5'></sub></form><legend id='dYRS5'></legend><bdo id='dYRS5'><pre id='dYRS5'><center id='dYRS5'></center></pre></bdo></b><th id='dYRS5'></th></span></q></dt></tr></i><div id='dYRS5'><tfoot id='dYRS5'></tfoot><dl id='dYRS5'><fieldset id='dYRS5'></fieldset></dl></div>
                  <legend id='dYRS5'><style id='dYRS5'><dir id='dYRS5'><q id='dYRS5'></q></dir></style></legend>

                  <small id='dYRS5'></small><noframes id='dYRS5'>

                • <tfoot id='dYRS5'></tfoot>

                      <bdo id='dYRS5'></bdo><ul id='dYRS5'></ul>