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
1 Answer
Reset to default 6It'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条)