腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Sequelize
JOIN
with
function
in
conditoin
、
这只是一个例子) SELECT *
JOIN
department dconst { db } = require('./../../db/
sequelize
') const dbConfig = r
浏览 15
提问于2021-08-31
得票数 0
1
回答
在异步并行中使用.then
、
、
我正试图在async.parallel中运行两个
sequelize
查询,这样我就可以在回调中将它们传递给一个表单(尽管表单集成在这里没有显示)。如果我只在区域中执行一次
sequelize
调用,那么它就可以工作,但当我先查询state.findOne,然后查询Zone.findAll时,它就不起作用了。 animals:
function
(callback) { Animal.findAll().then(
funct
浏览 1
提问于2017-04-07
得票数 0
7
回答
sequelize
.import不是一个函数
、
我希望导入文件以对其进行续订并声明:它返回以下类型错误然后,编辑代码到我认为这是进口东西的错误.== 'index.js'
浏览 17
提问于2020-07-15
得票数 43
回答已采纳
1
回答
在使用
Sequelize
.import时定义模型的顺序
、
= require('
sequelize
'); var settings = JSON.parse(fs.readFileSync(path.
join
(__dirname, '../..,{logging:false}); .then(
fun
浏览 0
提问于2016-07-06
得票数 3
2
回答
在
Sequelize
中查询连接的字段
、
、
、
我正在使用
Sequelize
实现一个应用程序来处理与数据库的通信。 return models.User.find({where: {concat(firstName,' ',lastName
浏览 0
提问于2015-03-07
得票数 0
2
回答
belongsToMany调用的内容不是
Sequelize
.Model错误的子类
、
、
、
你好,我的地址模型const
sequelize
= require('../../../models/borrowerInfo/BorrowerInfo') id: {'); const
sequelize
浏览 2
提问于2020-06-07
得票数 1
1
回答
节点对迁移/模型进行排序,是否可以共享相同的代码?
、
(
sequelize
, DataTypes) { first_name: DataTypes.STRING/schemas/users'); return
sequelize
.define(/schemas/users');
浏览 6
提问于2015-07-20
得票数 2
回答已采纳
1
回答
Express.js POST请求未定义
、
、
'), dialect: 'sqlite',}); Invoice
浏览 17
提问于2019-10-15
得票数 0
1
回答
Sequelize
()并不能创建所有的表模型
、
、
我对使用
sequelize
和node.js非常陌生。“模特/职位”: const
sequelize
= re
浏览 2
提问于2020-05-12
得票数 0
回答已采纳
4
回答
序列化错误: Index.js中未定义defineCall
、
、
、
(this, DataTypes); TypeError: defineCall is not a
function
at Module.load (module.js:343:32)var config
浏览 42
提问于2016-07-06
得票数 6
回答已采纳
2
回答
Sequelize
模型关联不会创建新列
、
、
为什么在我的一些模型中,
sequelize
不会为foreignkey创建一个新的专栏?但它确实为其他型号创造了?这很令人沮丧也很奇怪。例如,在这个用户模型中,
sequelize
不会创建role_id。'use strict'; const User =
sequelize
.define('User', {true }, first_name: DataTypes.STRING,
浏览 5
提问于2020-05-10
得票数 0
回答已采纳
2
回答
节点对如何编写静态函数进行排序。
、
、
、
String, salt: String this.findOne({ 'auth.username' : username },
function
(err, doc) {It will store attendants accounts details. "use stri
浏览 1
提问于2016-10-13
得票数 2
回答已采纳
6
回答
Sequelize
.import上出现错误: defineCall不是函数
、
、
、
我得到的错误是: this.importCachepath] = defineCall(this, DataTypes);TypeError: defineCall is not a
function
at
Sequelize
.import (C:\Users\brend\project\server
浏览 0
提问于2017-11-03
得票数 5
1
回答
找不到具有
sequelize
的模块模型
、
、
、
、
/routes/users'); app.set('views', path.
join
(__dirname, 'views('view engine', 'jade'); //app.use(favicon(path.<
浏览 0
提问于2017-05-12
得票数 0
1
回答
节点序列化。TypeError
、
/models"); console.log('Nice!= require("
sequelize
");var config = require(path.
join
, config); .readdirSync(__dir
浏览 7
提问于2017-08-18
得票数 0
回答已采纳
1
回答
将连接源模型序列化为目标模型
、
、
我有这样的模型: const Tool =
sequelize
.define('Tool',(
sequelize
, DataTypes) { OrderNumber:(
sequelize
, DataTypes) {
浏览 3
提问于2017-04-13
得票数 0
回答已采纳
2
回答
NodeJS序列化-无法读取未定义的属性“”_isSequelizeMethod“”
、
、
、
");var
Sequelize
= require("
sequelize
"); min: 0, }var db = {}; .readdirSync(__dirname) .filter(
function
== "index.js&
浏览 28
提问于2017-02-01
得票数 4
回答已采纳
1
回答
在使用
sequelize
和express进行构建时获取未定义的错误
、
、
、
config = require(path.
join
(__dirname, 'config.username, config.password, config); console.log== 'index.js') .forEach(
function
(file) { var model =
sequelize
['import'](p
浏览 0
提问于2016-02-04
得票数 0
回答已采纳
1
回答
如何在NodeJS中使用
Sequelize
执行三个表连接
、
以下是三个相关表格的定义:const
Sequelize
= require('
sequelize
');module.exports =
function
(
sequelize
, DataTypes) { return
sequelize
.define(=
浏览 10
提问于2021-10-20
得票数 2
回答已采纳
1
回答
TypeError:(中间值)不是异步Promise.all的函数
、
、
我正在重构在
Sequelize
中创建所有模型的索引文件,通过切换到Node v14和
Sequelize
v6和模块,使用imports而不是require。但是我被这个奇怪的错误卡住了: TypeError: (intermediate value) is not a
function
at file:///C:/...['import'](path.
join
(__dirname, file)); console.log({ fil
浏览 44
提问于2021-07-07
得票数 0
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券