I’m getting this error: ```{ GraphQLError: Field "...
# orm-help
a
I’m getting this error:
Copy code
{ GraphQLError: Field "createUser" argument "data" of type
 "UserCreateInput!" is required but not provided.
k
The argument type "UserCreateInput!" is not an array. So the short answer here is "no". The only way to batch create objects, to my knowledge, is to have the object as a child of another object. Example from my personal project where I have Subject and SubSubject types, and, obviously, a Subject has
subSubjects: [SubSubject!]! @relation(name: "SubjectToSubSubject")
Copy code
createSubject(data: {
    name: "Length"
    media: "length.gif"
    description: "Practice measurements of length and distance."
    subSubjects: {
      create: [
        {
          name: "Length - Hand-scale - To Metric"
          toMetric: true
          rarity: 0
          scale: "hand"
        },
        {
          name: "Length - Hand-scale - From Metric"
          toMetric: false
          rarity: 0
          scale: "hand"
        },
    ],
},