Trouble making inverse query when implementing interface

Here is a way to duplicate it using the schema from the OP:

mutation AddRelationship {
  addRelationship(input: [{
    name: "Progeny"
    type: { id: "0x5" }
    of: { id: "0x3" }
    to: { id: "0x4" }
    meta: [{
      name: { id: "0x6" }
      isTrue: true
    }]
  }]) { numUids }
}

mutation AddData {
  addContact(input: [{
    name: "Bob"
  }{
    name: "John"
  }]) {
    contact {
      id
      name
    }
  }
  addRelationshipCategory(input:[{
    slug:"progeny"
    name:"Progeny"
  }]) {
    relationshipCategory {
      id
      slug
    }
  }
  addControlledSetting(input:[{
    name: "close"
  }]) {
    controlledSetting {
      id
      name
    }
  }
}
query CloseRelationships {
  getControlledSetting(id:"0x6") {
    id
    name
    usedIn {
      ...on RelationshipMeta {
      	forRelationship {
          id
        	to {
          	id
        	}
      	}
      }
    }
  }
}
mutation deleteRelationship {
  deleteRelationship(filter:{id:["0x7"]}) {
    numUids
  }
}
mutation deleteAll {
  deleteContact(filter:{}){numUids}
  deleteRelationshipCategory(filter:{}){numUids}
  deleteControlledSetting(filter:{}){numUids}
  deleteRelationshipMeta(filter:{}){numUids}
}
  1. Run mutation addData
  2. Look at the response and:
  3. Replace 0x3 with the ID of Bob
  4. Replace 0x4 with the ID of John
  5. Replace 0x5 with the ID of progeny
  6. Replace 0x6 with the ID of close (It is in the above script twice)
  7. Run the AddRelationship mutation as many times as you want
  8. Run the CloseRelationships query
  9. Look at the respnse and
  10. Replace 0x7 with the ID at data.getControlledSetting.usedIn[*].forRelationship.id
  11. Run the deleteRelationship
  12. Run the CloseRelationships query again

ERROR

  • To reset, run the deleteAll mutation and repeat steps 1-12