Log GraphQL
SELECT_LOG
Example
ts
const SELECT_LOG = gql`
query selectLog(
$limit: Int! = 10
$offset: Int! = 0
$where: logs_bool_exp!
$order_by: [logs_order_by!]
) {
logs(
limit: $limit
offset: $offset
where: $where
order_by: $order_by
) {
user_id
type
target
description
created_at
}
logs_aggregate (
where: $where
) {
aggregate {
count
}
}
}
`;INSERT_LOG
Example
ts
const INSERT_LOG = gql`
mutation insertLog($object: logs_insert_input!) {
insert_logs_one (object: $object) {
id
}
}
`;