// when commands are of the form db.bucketName.find
} else {
throw new InvalidMongoCommandException(ErrorCodes.INVALID_COMMAND, "Invalid command");
}
String jsonStr = query.substring(startIndex + 1, endIndex);
return gridFSService.executeQuery(dbName, bucket, collectionName, command, jsonStr, skip, limit, sortBy);
}
});
return response.replace("\\", "").replace("\"{", "{").replace("}\"", "}");
}