deep-foundation / deep-foundation/deeplinks
deep.select with array passed as `in` property will not let specify from_id
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
# Code
```ts
await deep.select({
type_id: {
_id: ["@deep-foundation/push-notifications", "DeviceRegistrationToken"]
},
in: [{
type_id: {
_id: ["@deep-foundation/core", "Contain"]
},
from_id: deviceLinkId
}]
});
```
# Error
```
Error: field "from_id" not found in type: 'bigint_comparison_exp'
```
# Workaround
Pass object as in instead of array of objects
```ts
await deep.select({
type_id: {
_id: ["@deep-foundation/push-notifications", "DeviceRegistrationToken"]
},
in: {
type_id: {
_id: ["@deep-foundation/core", "Contain"]
},
from_id: 900
}
});
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Begin with the deep.select call in the issue and reproduce the error using an array as the in property with from_id. Compare that behavior with the object form and trace how each input is converted into the query. Done means the array form accepts from_id without the bigint_comparison_exp error, while the existing object form continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100