在Bigtable中插入行时如何设置列族

问题描述 投票:1回答:1

我想在Bigtable中插入一行,我尝试了这个简单的代码

const rowToInsert = {
  key: `${tenantId}:${customerId}`,
  data: personalInfo
};

await table.insert(rowToInsert);

但我知道了

Error while mutating the row '999:customerId' : Requested column family not found.

列族存在,所以如何设置此插入的列族?我在文档中看到了this示例,但我不清楚[]

我想向Bigtable插入一行,我尝试了以下简单代码const rowToInsert = {key:`$ {tenantId}:$ {customerId}`,data:personalInfo};等待table.insert(rowToInsert);但出现错误...

node.js google-api insert google-cloud-bigtable bigtable
1个回答
1
投票

[Cloud Bigtable Writing Data documentation显示如何执行各种写入

© www.soinside.com 2019 - 2024. All rights reserved.