查询使用AWS的数组的查询结果

发布于 2025-02-04 07:43:21 字数 469 浏览 3 评论 0原文

我的情况是:

  • 在第一步中,我需要从appsync编写mySQL查询,该查询返回一系列对象(例如n对象)

  • 在第二步中返回一系列对象(例如n对象)

    ,我需要查询查询1输出中的每个对象,然后返回该对象一系列对象(例如m对象)

  • 在第三步中返回一系列对象(例如M对象)

    ,我需要在表中创建NM条目。

哪个AWS服务适合此问题?

我尝试了两种方法,但似乎没有任何效果。

第一个方法,使用lambda,我在其中编写了所有查询。

第二种方法,使用管道解析器。

我尝试创建一个函数来查询第一个所需的输出,即返回结果(n个对象的数组作为输出)。

现在,我无法编写一个查询,以使其为每个对象执行。

任何人都可以为此问题提出更好的AWS服务,或者使用上述方法可以做出的工作解决方案。

谢谢。

I have a situation where :

  • In the first step I need to write a MySQL query from appsync, which returns an array of objects (of say n objects)

  • In the second step, I need to query for every object in query 1's output, which in turn returns an array of objects (say m objects)

  • In the third step, I need to create nm entries into a table.

Which AWS Service suits this problem?

I have tried two approaches, but nothing seems to work fine.

1st approach, using lambda where I wrote all the queries one after the other inside .then() but the in the output the queries are executing randomly even after using await.

2nd Approach, using pipeline resolvers.

I have tried creating a function for querying the first required output which is returning result (array of n objects as output).

Now I'm unable to write a query such that it executes for each of the object.

Can anyone suggest a better aws service for this problem or a working solution that could be possible with above approaches.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文