Skip to main content

Scenarios

Start with CreateSessions, which signs in a User or an Agent. From there you can manage Users and Agents, create Accounts, and use CreateRVMs to add the RVMs an Account holds.

Sessions​

Sessions has no examples yet.

Create Sessions​

CreateSessions has no recorded example yet.

Users​

Users has no examples yet.

Select Users​

SelectUsers has no recorded example yet.

Update Users​

UpdateUsers has no recorded example yet.

Delete Users​

DeleteUsers has no recorded example yet.

Agents​

Agents has no examples yet.

Create Agents​

CreateAgents has no recorded example yet.

Select Agents​

SelectAgents has no recorded example yet.

Update Agents​

UpdateAgents has no recorded example yet.

Delete Agents​

DeleteAgents has no recorded example yet.

Accounts​

Create Accounts​

Create an Account with only an Id and a Label.

Request
mutation {
CreateAccounts {
Id(Is: {In: "acme"})
Label(Is: {In: "Acme"})
}
}
Response
{
"data": {
"CreateAccounts": [
{
"Id": "acme",
"Label": "Acme"
}
]
}
}

Select Accounts​

Select one Account by its Id, with its Label.

Request
query {
SelectAccounts {
Id(Is: {In: "acme"})
Label
}
}
Response
{
"data": {
"SelectAccounts": [
{
"Id": "acme",
"Label": "Acme"
}
]
}
}

Update Accounts​

Update the Label of one Account by its Id.

Request
mutation {
UpdateAccounts {
Label(Is: {In: "Acme Corporation"})
Where {
... on SelectAccount {
Id(Is: {In: "acme"})
}
}
}
}
Response
{
"data": {
"UpdateAccounts": [
{
"Label": "Acme Corporation",
"Where": [
{
"Id": "acme"
}
]
}
]
}
}

Delete Accounts​

Delete one Account by its Id.

Request
mutation {
DeleteAccounts {
Where {
... on SelectAccount {
Id(Is: {In: "acme"})
}
}
}
}
Response
{
"data": {
"DeleteAccounts": [
{
"Where": [
{
"Id": "acme"
}
]
}
]
}
}

RVMs​

Create RVMs​

Create an RVM of Size 1 together with the Account it belongs to.

Request
mutation {
CreateRvms {
Id(Is: {In: "production"})
Label(Is: {In: "Production"})
Size(Is: {In: 1})
Account {
... on CreateAccount {
Id(Is: {In: "globex"})
Label(Is: {In: "Globex"})
}
}
}
}
Response
{
"data": {
"CreateRvms": [
{
"Id": "production",
"Label": "Production",
"Size": 1,
"Account": {
"Id": "globex",
"Label": "Globex"
}
}
]
}
}

Select RVMs​

Select one RVM by its Id, with the Id and Label of its Account.

Request
query {
SelectRvms {
Id(Is: {In: "production"})
Account {
... on SelectAccount {
Id
Label
}
}
}
}
Response
{
"data": {
"SelectRvms": [
{
"Id": "production",
"Account": {
"Id": "globex",
"Label": "Globex"
}
}
]
}
}

Update RVMs​

Update the Label of one RVM by its Id.

Request
mutation {
UpdateRvms {
Label(Is: {In: "Production West"})
Where {
... on SelectRvm {
Id(Is: {In: "production"})
}
}
}
}
Response
{
"data": {
"UpdateRvms": [
{
"Label": "Production West",
"Where": [
{
"Id": "production"
}
]
}
]
}
}

Delete RVMs​

Delete one RVM by its Id.

Request
mutation {
DeleteRvms {
Where {
... on SelectRvm {
Id(Is: {In: "production"})
}
}
}
}
Response
{
"data": {
"DeleteRvms": [
{
"Where": [
{
"Id": "production"
}
]
}
]
}
}