Skip to content

Aliases are not returned from serial #179

@FreePhoenix888

Description

@FreePhoenix888

When I do execute these serial operations:

  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

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:

return { ...result, data: (result)?.data && Object.values((result)?.data).flatMap(m => m.returning)};

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions