|
@@ -247,6 +247,7 @@ router.route("/getFileArray").all(async (req, res, next) => {
|
|
|
// const array = data.map(item => item.documentid);
|
|
|
try {
|
|
|
let data = decodeURIComponent(req.body[0].array).split(",");
|
|
|
+
|
|
|
const response = await client.documents.list({ ids: data });
|
|
|
|
|
|
res.status(200).json({ result: response.results });
|
|
@@ -957,6 +958,7 @@ router.route("/getGraphs2").all(async (req, res, next) => {
|
|
|
const response = await client.documents.listRelationships({
|
|
|
id: documentId,
|
|
|
includeVectors: false,
|
|
|
+ offset: 0,
|
|
|
limit: 1000, // 修正这里的参数
|
|
|
});
|
|
|
return response.results;
|