deep-foundation / deep-foundation/deeplinks

Aliases are not returned from serial

Open
#179 0 comments 0 reactions 1 assignee Claimed by @FreePhoenix888 View on GitHub
enhancement
Dominant language
TypeScript
Stars
13
Forks
8
PR merge metrics
No merged PRs in 30d

Description

When I do execute these serial operations:
```ts
await deep.serial({
operations: [
{
table: 'strings',
type: 'update',
exp: {
link_id: 5663
},
value: {
value: "HiWorld"
}
},
{
table: 'strings',
type: 'update',
exp: {
link_id: 5671
},
value: {
value: "HiWorld"
}
},
],
});
```
It gets full info including aliases
```ts
mutation Name($_set0: strings_set_input, $where0: strings_bool_exp!, $_set1: strings_set_input, $where1: strings_bool_exp!) {
m0: update_strings(_set: $_set0, where: $where0) {
returning {
id
__typename
}
__typename
}
m1: update_strings(_set: $_set1, where: $where1) {
returning {
id
__typename
}
__typename
}
}
```
but `serial` ignores it:
https://github.com/deep-foundation/deeplinks/blob/dfa515a07cb4df57738fbe7b1d96d8bce523d8c2/imports/client.tsx#L850

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.