deep-foundation / deep-foundation/deeplinks
deep select returns empty array of lnks in plv8 handler
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
# How to reproduce
1. Login as admin
2. Create Type contained in admin
3. Create SyncTextFile contained in admin with this value:
```typescript
({ deep, data: { newLink, triggeredByLinkId } }) => {
throw new Error(
JSON.stringify(
deep.select(newLink.id)
)
)
}
```
4. Create Handler from plv8SupportsJs to your syncTextFile
5. Create HandleUpdate from your type to Handler
6. Insert Value from your type to String
7. Insert a link of your type
8. Update value of your link
9. See error. See that deep.select returns empty array of links
```
Error: DeepClient Insert Error: {"data":[]}
```
# Test
https://github.com/deep-foundation/deeplinks/blob/8539b75899ef5077fa5d303f29f0f83740af4baf/tests/sync-handlers.ts#L3033-L3050
# Additional Info
I have created my Deep workspace in gitpod approximately a few days ago
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.