Listing Custom Select Field Answers
For custom select fields you use the LibraryID on the fieldAnswers Query to get al of the answers for that field
|
Request
|
Response |
{ fieldAnswers(fieldId:"MDZC0jk2") { edges { node { id text } } } }
|
{ "data": { "fieldAnswers": { "edges": [ { "node": { "id": "MDZC0jk2", "text": "Single 1" } }, { "node": { "id": "MDBGE1", "text": "Answer 1" } }, { "node": { "id": "MDBGE2", "text": "Answer 2" } } ] } } }
|
Listing Entities
|
Request
|
Response |
{ entities{ edges { node { id name } } } }
|
{ "data": { "entities": { "edges": [ { "node": { "id": "MDBFbnRpdHktMTEzOA", "name": "Example Entity Name" } }, { "node": { "id": "MDBFbnRpdHktMjMyMg", "name": "Another Example Entity Name" } } ] } } }
|
Listing Contacts
|
Request
|
Response |
{ contacts(entityIds:"MDBFbnMTEzOA") { pageInfo { endCursor startCursor } edges { node { id name } } } }
|
{ "data": { "contacts": { "pageInfo": { "endCursor": "MTAw", "startCursor": "MQ" }, "edges": [ { "node": { "id": "MDBDb250YWN0LTE5NTY", "name": "Another example contact" } } ] } } }
|
Listing Business Units
|
Request
|
Response |
{ businessUnits{ edges { node { id title } } } }
|
{ "data": { "businessUnits": { "edges": [ { "node": { "id": "MDBCdXNpbmVzc1VuaXQtNDU4NA", "title": "A Third One" } }, { "node": { "id": "MDBCdXNpbmVzc1VuaXQtNDAyMg", "title": "Audit" } } ] } } }
|
Listing Locations
|
Request
|
Response |
{ locations{ edges { node { id title } } } }
|
{ "data": { "locations": { "edges": [ { "node": { "id": "MDBMb2NhdGlvbi0yMDY3", "title": "Sydney" } }, { "node": { "id": "MDBMb2NhdGlvbi00NTEy", "title": "Melbourne" } } ] } } }
|
Listing Programs
|
Request
|
Response |
{ programs{ edges { node { id title } } } }
|
{ "data": { "programs": { "edges": [ { "node": { "id": "MDBQcm9ncmFtLTI4ODg", "title": "Alpha" } }, { "node": { "id": "MDBQcm9ncmFtLTQ4Njk", "title": "Beta" } } ] } } }
|
Listing Risk Classifications
|
Request
|
Response |
{ riskClassifications{ edges { node { color definition id impact title } } } }
|
{ "data": { "riskClassifications": { "edges": [ { "node": { "color": "#da8ba3", "definition": null, "id": "MDBSaXNrQ2xhc3NpZmljYXRpb24tMzAwOA", "impact": null, "title": "Example Risk Classification" } }, { "node": { "color": "#6e5773", "definition": "Risks impacting our finances", "id": "MDBSaXNrQ2xhc3NpZmljYXRpb24tMzkwNA", "impact": "The Impact for Financial Risks", "title": "Financial" } } ] } } }
|
Listing Users
|
Request
|
Response |
{ users{ edges { node { id name } } } }
|
{ "data": { "users": { "edges": [ { "node": { "id": "MDBVc2VyLTE3MTc", "title": "Mr Toad" } }, { "node": { "id": "MDBVc2VyLTQyMjA", "title": "Mr Rat" } } ] } } }
|
Listing Entity Categories
|
Request
|
Response |
{ entityCategories { edges { node { id title } } } }
|
{ "data": { "users": { "edges": [ { "node": { "id": "MDBVc2VyLTE3MTc", "title": "Category A" } }, { "node": { "id": "MDBVc2VyLTQyMjA", "title": "Category B" } } ] } } }
|