ravendb
Version:
RavenDB client for Node.js
30 lines • 839 B
JavaScript
import { RavenCommand } from "../../../Http/RavenCommand.js";
export class GetIdentitiesOperation {
get resultType() {
return "CommandResult";
}
getCommand(conventions) {
return new GetIdentitiesCommand();
}
}
export class GetIdentitiesCommand extends RavenCommand {
constructor() {
super();
}
get isReadRequest() {
return true;
}
createRequest(node) {
const uri = node.url + "/databases/" + node.database + "/debug/identities";
return { uri };
}
async setResponseAsync(bodyStream, fromCache) {
let body = null;
this.result = await this._pipeline()
.parseJsonSync()
.collectBody(b => body = b)
.process(bodyStream);
return body;
}
}
//# sourceMappingURL=GetIdentitiesOperation.js.map