deep-foundation / deep-foundation/deeplinks
Improve error handling
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
# Code
```ts
await deep.serial({
operations: [
createSerialOperation({
table: 'links',
type: 'insert',
objects: {
id: routerStringUseLinkId,
type_id: routerStringUseTypeLinkId,
from: routeLinkId, // The problem is here, I have made typo and written `from` instead of `from_id`
to_id: routerLinkId,
in: {
data: {
type_id: containTypeLinkId,
from_id: ownerLinkId
}
},
}
})
]
})
```
# Error
```
ApolloError: expected an object for type "links_obj_rel_insert_input", but found a number
```
# Problem
I have wasted my time to found out where the problem is
# Expected behavior
I would like to get more info where the error occured
```
ApolloError: expected an object for type "links_obj_rel_insert_input", but found a number. The provided value: ${routeLinkId}
```
# Workaround ?
Use typescript
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.