Skip to main content

systemLogs

Returns log entries, most recent first, as a paginated connection.

Business Rules

  • With entities, or with both entityId and entityType, the entries returned are those recorded about the referenced entities. entities takes 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, entityType on its own narrows the entries to that kind of entity, and UNKNOWN narrows them to the kinds the API does not recognize.
  • logType, operation, startDate and endDate narrow 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_logs permission, 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.