systemLogs
Returns log entries, most recent first, as a paginated connection.
Business Rules
- With
entities, or with bothentityIdandentityType, the entries returned are those recorded about the referenced entities.entitiestakes precedence. - Without an entity reference, the entries returned are the whole activity of the company in context, and those not linked to an entity are left out.
- For the company activity,
entityTypeon its own narrows the entries to that kind of entity, andUNKNOWNnarrows them to the kinds the API does not recognize. logType,operation,startDateandendDatenarrow the entries in both cases.
Error Scenarios
- **
BAD_REQUEST**: when a referenced entity does not exist, or when no entity is referenced and the request carries no company context.
Permissions Required
read_system_logspermission, on the company of every referenced entity, or on the company in context.
systemLogs(
after: String
before: String
filters: SystemLogFilterInput!
first: Int
last: Int
): SystemLogConnection!
Arguments
systemLogs.after ● String scalar common
Returns the elements in the list that come after the specified cursor.
systemLogs.before ● String scalar common
Returns the elements in the list that come before the specified cursor.
systemLogs.filters ● SystemLogFilterInput! non-null input common
systemLogs.first ● Int scalar common
Returns the first _n_ elements from the list.
systemLogs.last ● Int scalar common
Returns the last _n_ elements from the list.
Type
SystemLogConnection object common
The connection type for SystemLog.