javascript - Can I create multiple elements of the same type using Strapi and GraphQL? - Stack Overflow

Can I create multiple elements of the same type using Strapi and GraphQL?For example -createMultipleF

Can I create multiple elements of the same type using Strapi and GraphQL? For example -

createMultipleFoo mutation(data: [
    nameOfFoo: "ooaoaoa",
    weightOfFoo: "aododo"
    ], ....)

Can I create multiple elements of the same type using Strapi and GraphQL? For example -

createMultipleFoo mutation(data: [
    nameOfFoo: "ooaoaoa",
    weightOfFoo: "aododo"
    ], ....)
Share Improve this question edited Sep 2, 2020 at 14:34 Eggcellentos 1,7681 gold badge22 silver badges28 bronze badges asked Aug 5, 2020 at 7:36 Eugene MandelshtamEugene Mandelshtam 372 silver badges6 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

It's in the roadmap.

What you can do for now is create a custom endpoint ie. "createMulti". Send a json array, and use the "regular" create for each. Check out the discussion here.


Update Q4 2021:
Status moved to "In Progress (Development)"


Update Q2 2022:
The roadmap site has moved, link to the issue: https://feedback.strapi.io/developer-experience/p/support-bulk-entries-creationupdates-v4

Status marked as "PLANNED"


发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744853260a4597252.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信