标签: aws-appsync

AWS AppSync的后台数据库

我想知道AWS AppSync用于在云上存储数据的后台数据库是什么?我没有在文档中找到此信息.

谢谢.

aws-appsync

0
推荐指数
1
解决办法
596
查看次数

在 AWS AppSync 上查询 GraphQL 后的 AWS Lambda 超时

我按照本教程使用 Amplify 部署了一个 AWS AppSync GraphQL 终端节点:

https://aws-amplify.github.io/docs/js/api#amplify-graphql-client

我用 Node.js 和 TypeScript 创建了一个 Lambda 函数来查询数据:

import { APIGatewayEvent, Callback, Context, Handler } from 'aws-lambda';
import Amplify, { API, graphqlOperation } from "aws-amplify";
import * as queries from './src/graphql/queries';
import * as mutations from './src/graphql/mutations';
import { CreateBlogInput } from './src/API';
import aws_config from "./src/aws-exports";

Amplify.configure(aws_config);

export const list: Handler = async (event: APIGatewayEvent, context: Context, cb: Callback) => {
  const allBlogs = await API.graphql(graphqlOperation(queries.listBlogs));

  // this seems to be working …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services aws-lambda graphql aws-appsync aws-amplify

0
推荐指数
1
解决办法
1843
查看次数

如何使用放大从 aws schema.graphql 生成 graphql 语句

所以我schema.graphql使用amplify add api命令创建,但是当它让我生成查询、突变和订阅时,我说不。

现在我想知道,我怎样才能在事后生成它们?还是必须重新走amplify add api一遍整个流程?

aws-appsync aws-amplify

0
推荐指数
1
解决办法
280
查看次数

使用 Cognito 用户池 ID 在 AWS 上调用 graphql api

我花了两天时间谷歌搜索解决方案。但未能找到合适的解决方案。我收到以下信息。

Cognito Identity pool ids: 
INT: "us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
CRT: "us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
PSS: "us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
PREPROD: "us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
PROD: "us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Api url : https://xxxxxxxxxxxxxxxx.appsync-api.us-east-2.amazonaws.com/graphql
Api id : 63xxxxxxxxxxxxxxxxxx
Appsync name : TheAppSyncName
Authorization mechanism : IAM auth
Run Code Online (Sandbox Code Playgroud)

我发现在 Android 中有几种不同的方法可以做到这一点,https://github.com/awslabs/aws-mobile-appsync-sdk-android

但找不到 .net c# AWS sdk 的示例。

有人可以解释一下上述值的含义以及如何使用它来调用 .net C# 中的 graphql API 吗?

更新:经过多次尝试,我最终没有任何解决方案。然后我发现 appsync 不能与 c# .net 中的给定信息一起使用。除了上述内容之外,我还获得了 AWS 帐号和未经身份验证的角色 ARN。

c# amazon-cognito .net-core graphql aws-appsync

0
推荐指数
1
解决办法
1946
查看次数