【发布时间】:2021-05-06 18:58:00
【问题描述】:
我一直在尝试编写联结,我正在使用 join-monster-graphql-tools-adapter。这是示例代码
assets:{
junction: {
sqlTable: 'FPAS',
sqlJoins: [(contractTable, junctionTabel) => `${contractTable}.CONTRACT_ID =${junctionTabel}.CONTRACT_ID`,
(junctionTabel,assetTable) => `${junctionTabel}.ASSET_ID = ${assetTable}.ASSET_ID`]
}
但在测试时失败并显示错误消息:Cannot read property 'sqlTable' of undefined
谁能帮我解决这个问题。
【问题讨论】:
标签: graphql apollo-server