AllMatters
Retrieves a list of all matters in the system without paging. A matter has a client, matter details, and associated phases.
Query Structure
Query Name: AllMatters
Return Type: [Matter!]! - A non-null array of non-null Matter objects
Example Usage
cURL
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{
"query": "query { AllMatters { Id Number Name Client { Id Number Name } Phases { Id Number Name } } }"
}' \
https://sandbox.drivepractice.com/api/v1/graphqlExample Response
{
"data": {
"AllMatters": [
{
"Id": "5f8d0d5a7b3e4f1234567890",
"Number": "MAT-2023-001",
"Name": "Corporate Restructuring Project",
"Client": {
"Id": "5f8d0d5a7b3e4f1234567891",
"Number": "CLI-2022-456",
"Name": "Acme Corporation"
},
"Phases": [
{
"Id": "5f8d0d5a7b3e4f1234567892",
"Number": "PH-2023-001-A",
"Name": "Discovery Phase"
},
{
"Id": "5f8d0d5a7b3e4f1234567893",
"Number": "PH-2023-001-B",
"Name": "Implementation Phase"
}
]
},
{
"Id": "5f8d0d5a7b3e4f1234567894",
"Number": "MAT-2023-002",
"Name": "Legal Compliance Review",
"Client": {
"Id": "5f8d0d5a7b3e4f1234567895",
"Number": "CLI-2022-789",
"Name": "Global Tech Inc."
},
"Phases": [
{
"Id": "5f8d0d5a7b3e4f1234567896",
"Number": "PH-2023-002-A",
"Name": "Initial Assessment"
}
]
}
]
}
}Response Fields
Id: Unique identifier for the matter (String!)Number: Matter reference number (String!)Name: Descriptive name of the matter (String!)Client: Client information (Client! type)Id: Client unique identifierNumber: Client reference numberName: Client name
Phases: Array of matter phases (MatterPhase! type)Id: Phase unique identifierNumber: Phase reference numberName: Phase name
Pagination
Note: This query does not support pagination. All matters are returned in a single response. If paging is required, a different query should be used which suports pagination.
Error Handling
Common error responses:
{
"errors": [
{
"message": "Unauthorized",
"extensions": {
"code": "UNAUTHENTICATED"
}
}
]
}{
"errors": [
{
"message": "Internal server error",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
]
}