ash-project / ash-project/ash_graphql

Introduce a bulk option (or similarly named) option to updates and potentially destroys

Open
#277 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Elixir
Stars
97
Forks
101
Avg merge
12h 51m
Merged PRs (30d)
5

Description

Right now to do bulk mutations you need to wrap your `update` in a generic action and point graphql at the generic action since an update always just returns one record.

My proposal is a dsl modifier to the `update` and `destroy` graphql mappers that changes the return value to a list and executes a Bulk under the hood.

Contributor guide

Open the contributing guide

Research direction

Start by locating the GraphQL mappers for update and destroy and the generic-action path used for bulk mutations. Clarify the DSL modifier's name and behavior, then verify that update and destroy can return lists and execute a Bulk operation, with coverage for both mutations.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir, graphql
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.