Retrieving a Company
The following example looks up a fictional company (Acme, Inc.) from an example BaseCMS API. This query outlines how to make a request to retrieve company fields.
Retrieve a company by ID
Headers
Name
Type
Description
Request Body
Name
Type
Description
{
"data": {
"contentCompany": {
"id": 21112606,
"name": "Acme, Inc."
}
}
}{
"error": {
"errors": [
{
"message": "Variable \"$input\" got invalid value {}; Field id of required type Int! was not provided.",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
]
}
}

Last updated