deep-foundation / deep-foundation/deeplinks

`deep.update` is not working if a link does not have a value

Open
#79 3 comments 0 reactions 0 assignees View on GitHub
bug question
Dominant language
TypeScript
Stars
13
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Minimal reproduction example:
```js
const {data: [{id: newLinkId}]} = await deep.insert({type_id: 22})
await deep.update(newLinkId, { value: 'abc' }, { table: 'strings' });
await deep.select(newLinkId)
```

Workaround:
```js
await deep.insert({link_id:876 , value: "name"},{table: "strings"})
await deep.insert({link_id: 877, value: {a: 1}}, {table: "objects"})
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the JavaScript minimal reproduction for deep.insert, deep.update, and deep.select, then trace the deep.update entry point and the strings table path. Confirm how links without an existing value are handled. Done means updating the new link with value "abc" succeeds and deep.select returns the updated value without requiring the documented workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.