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}
}
- Run mutation
addData - Look at the response and:
- Replace
0x3with the ID of Bob - Replace
0x4with the ID of John - Replace
0x5with the ID of progeny - Replace
0x6with the ID of close (It is in the above script twice) - Run the
AddRelationshipmutation as many times as you want - Run the
CloseRelationshipsquery - Look at the respnse and
- Replace
0x7with the ID atdata.getControlledSetting.usedIn[*].forRelationship.id - Run the
deleteRelationship - Run the
CloseRelationshipsquery again
ERROR
- To reset, run the
deleteAllmutation and repeat steps 1-12