About the GraphQL input and auto-generated schema

it should generate the addMammal and updateMammal mutations allowing you to do:

mutation  {
  addMammal(input: [{
    # mammal fields here
    cats: [{
      # cat fields here
    }]
  }]) { numUids }
}

or

mutation  {
  updateMammal(input: {
    filter: { id: [
      # uid(s) of mammal(s) to update here
      "0x2"
    ]}
    set: {
      # mammal fields to set here
      cats: [
        #cats to add or link by reference here
        { id: "0x3" }
      ]
    }
  }) { numUids }
}
1 Like