graphql-compose / graphql-compose/graphql-compose-elasticsearch

Mutations via updateById overwrite arrays instead of appending to them

Open
#37 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
584
Forks
76
PR merge metrics
No merged PRs in 30d

Description

It should be possible to append to array fields per [this elastic.co doc](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html#_scripted_updates). Currently, the request is made to `/_update` with a `doc` object, but for appending to arrays we would need to be able to make a GraphQL request that is resolved to a `script` object.

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.