Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleRequest

Query

Code Block
languagegraphql
query{
    units{
        getStandard
        {
            units{
                id
                name
                dimension
            }
        }
    } 
}
Expand
titleResponse
Code Block
languagejson
{
    "data": {
        "units": {
            "getStandard": {
                "units": [
                    {
                        "id": "f14819b2-e1b6-4f8b-9b85-08d43583ec09",
                        "name": "Individual Carton",
                        "dimension": "Discrete"
                    },
                    {
                        "id": "e92dc923-6da8-4fe1-9380-6564201d70c2",
                        "name": "Kit",
                        "dimension": "Discrete"
                    },
                    {
                        "id": "a7df0af5-0001-0000-7484-751e8eaf05c6",
                        "name": "Teaspoon",
                        "dimension": "Volume"
                    },
                    {
                        "id": "a7df0af5-0002-0000-7484-751e8eaf05c6",
                        "name": "Tablespoon",
                        "dimension": "Volume"
                    },
                    {
                        "id": "a7df0af5-0003-0000-7484-751e8eaf05c6",
                        "name": "Cup",
                        "dimension": "Volume"
                    },
                    ...            
                ]
            }
        }
    }
}

...