Hey @pawan, here’s some of the resources you requested.
Current schema - this includes all of the @auth stuff I’ve included
Body of the first mutation I send (because I used the OwnerOrg ID as my multitenancy barrier):
{
"query": "mutation AddOwnerOrgs($input: [AddOwnerOrgInput!]!) { addOwnerOrg(input: $input) { ownerOrg { id } } }",
"variables": {
"input": [
{
"street": "street1",
"city": "city1",
"county": "count1",
"state": "state1",
"country": "usa",
"zip": 11111,
"name": "first owner org",
"createdOn": "2006-01-02T15:04:05",
"updatedOn": "2006-01-02T15:04:05"
}
]
}
}
Body of the second mutation sent (this one includes the references to the ID generated by the mutation above:
{
"query": "mutation AddStorageOrg($input: [AddStorageOrgInput!]!) { addStorageOrg(input: $input) { storageOrg { name } } }",
"variables": {
"input": [
{
"street": "street2",
"city": "city2",
"county": "county2",
"state": "state2",
"country": "usa",
"zip": 22222,
"name": "new storage org",
"createdOn": "2020-01-02T15:04:05",
"updatedOn": "2020-01-02T15:04:05",
"owner": {
"id": "ID_FROM_ABOVE"
}
}
]
}
}
The “interface” query I run (as per the recommendation from @rajas):
{
"query": "query { queryOrg { id } } "
}
The result here is a 200 status response but no data. I’m able to use the generated queryStorageOrg with an empty filter and that pulls back the StorageOrg type that was added with the second mutation (as expected).