Open Konard opened 1 year ago
This code
const spaceId = 2355; await deep.insert({ type_id: { _id: ["@deep-foundation/rss-to-deep", "Address"] }, in: { data: { type_id: { _id: [ "@deep-foundation/core", "Contain" ] }, from_id: spaceId }} });
fails with error:
client.js:397 Uncaught Error: DeepClient Insert Error: parsing Integer expected for input type: PGBigInt failed, expected Number, but encountered Object at DeepClient.eval (client.js:396:1) at Generator.throw (<anonymous>) at rejected (client.js:5:42)
Use await deep.id(...)
await deep.id(...)
const spaceId = 2355; await deep.insert({ type_id: await deep.id("@deep-foundation/rss-to-deep", "Address"), in: { data: { type_id: await deep.id("@deep-foundation/core", "Contain"), from_id: spaceId }} });
Duplicate of https://github.com/deep-foundation/deeplinks/issues/253 ?
This code
fails with error:
Workaround
Use
await deep.id(...)