deep-foundation / deep-foundation/deeplinks

`Link after value` or `Value after link`

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

Description

Link after value
```js
operations.push({
table: 'strings',
type: 'insert',
objects: {
link_id: postLinkId,
value: content
}
});
operations.push({
table: 'links',
type: 'insert',
objects: {
id: postLinkId,
type_id: Post,
from_id: newLink.from_id,
to_id: newLink.from_id,
},
});
```

or

Value after link
```js
operations.push({
table: 'links',
type: 'insert',
objects: {
id: postLinkId,
type_id: Post,
from_id: newLink.from_id,
to_id: newLink.from_id,
},
});
operations.push({
table: 'strings',
type: 'insert',
objects: {
link_id: postLinkId,
value: content
}
});
```

It may be irrelevant for async handlers, but important for sync handlers.

```js
await deep.serial({
operations
});
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.