查询使用AWS的数组的查询结果
我的情况是:
在第一步中,我需要从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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论