AF
Ash Framework•4mo ago
Vahagn

AshGraphQL bulk operation

How do I make graphql perform bulk upsert? I couldn't find anything in ash graphql docs, but I saw ash supported bulk actions
4 Replies
ken-kost
ken-kost•4mo ago
🤔 I'm guessing you could create a custom mutation in order to call Ash.bulk_create/4 action also needs upsert option
Vahagn
VahagnOP•4mo ago
ok, just wanted to make sure there is no built in way before I do that
ken-kost
ken-kost•4mo ago
not sure, Zach will confirm. I did find a changelog
[AshGraphql.Resolver] Bulk actions are automatically used for create/update/destroy actions. This means far fewer queries made in general.
might just be 'out-of-the-box' 😄
ZachDaniel
ZachDaniel•4mo ago
Nope, that's still for single update/destroys etc A generic action is the way to do it 🙂

Did you find this page helpful?