When deployed, and I try to create a book, I’m not...
# orm-help
d
When deployed, and I try to create a book, I’m not quite sure how to enter the versions array. I figured it might be like this but apparently not.
Copy code
mutation CreateBook {
  createBook(data: {
    name: "Some book"
    versions: [
      { name: "..." publishDate: "..." }
      { name: "..." publishDate: "..." }
    ]
  }) {
    id
  }
}
w
One of the main advantages of GraphQL is its schema. Use the schema documentation, and you’ll find what you’re doing wrong
n
it's
Copy code
versions: {
  create: [{name: "", publishDate:""}, {name: "", publishDate:""}]
}
👍 1
and I totally agree with @weakky 🙂 look up the
createBook
mutation in the Playground, navigate to the
versions
input field and look at its shape there
d
Got it. Thanks, guys!
gucci 1