diff --git a/structure/client/TransactionHandler.js b/structure/client/TransactionHandler.js index 242e407..11e3019 100644 --- a/structure/client/TransactionHandler.js +++ b/structure/client/TransactionHandler.js @@ -25,6 +25,18 @@ class TransactionHandler { _send(message, options = {}) { + /** Message structure + * { + * provider: string, -- mongodb or mariadb + * request: { + * type: string, -- The function to use from this class, ex. findOne + * collection: string, -- Which collection to query from + * query: { }, -- Actual search query + * data: { } -- If the operation is to update or insert something, this is what to insert + * } + * } + */ + return new Promise((resolve, reject) => { const id = this.transactionID;