|
@@ -1016,7 +1016,7 @@ router.route("/getGraphs2").all(async (req, res, next) => {
|
|
router.route("/getEntitiesAndRelationships").all(async (req, res, next) => {
|
|
router.route("/getEntitiesAndRelationships").all(async (req, res, next) => {
|
|
if (req.body[0]) {
|
|
if (req.body[0]) {
|
|
try {
|
|
try {
|
|
- const { documentId } = req.body[0];
|
|
|
|
|
|
+ const { page = 1, limit = 10, documentId } = req.body[0];
|
|
const offset = (page - 1) * limit;
|
|
const offset = (page - 1) * limit;
|
|
const response = await client.documents.listEntities({
|
|
const response = await client.documents.listEntities({
|
|
id: documentId,
|
|
id: documentId,
|