newrelic
Version:
New Relic agent
22 lines (17 loc) • 427 B
JavaScript
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
function ParsedStatement(type, operation, collection, raw) {
this.type = type
this.operation = operation
this.collection = collection
this.trace = null
this.raw = ''
if (typeof raw === 'string') {
this.trace = new Error().stack
this.raw = raw
}
}
module.exports = ParsedStatement