GraphQL Query for Getting User History? #637
Replies: 1 comment
-
|
@alexpripley Sorry I missed this topic. The logs contain this information, but we don't keep track of those actions as part of the user model. GraphQL talks directly to the database, so it can only pull information stored in the database. Django does track model changes to some degree. If you go into the admin panel and select a record, there is a "History" button that opens a log. However, this is limited to edits. It doesn't track who created the entry. It also has to exist to have history, so deleting the entry deletes everything. You wouldn't be able to see who deleted it because it's gone. We can see about adding some middleware to log user actions. That would make it queryable via GraphQL. In the meantime, these sorts of actions are in the logs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
I took a look at the graphql schema but don't think I found anything that would solve my particular use case.
Say for example a user either a) edited a client or b) deleted a client, is it possible to craft a graphql query to enumerate that information?
Beta Was this translation helpful? Give feedback.
All reactions