localstack / localstack/appsync-utils

Feature requests for JS utility functions

未关闭
#19 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

enhancement
主要语言
JavaScript
星标
9
派生
1
平均合并
30 分钟
30 天内合并 PR
27

描述

# Motivation

We do not currently support the whole of the AppSync `@aws-appsync/utils` package available on AWS. We would like some input on what functions are the most used by our community.

# Instructions

Please add a comment to this PR indicating which functions you use when using AppSync, specifically in JavaScript resolvers from the `@aws-appsync/utils` package. If a comment already exists with your suggestion then please leave a :+1: on the comment, and we will use this to prioritise the functions that are most requested.

Currently implemented functions

Assuming the following import:

```javascript
import { util } from '@aws-appsync/utils'
```

* `util.autoId`
* `util.appendError` _(partial, the function exists but errors are not yet captured)_
* `util.time.nowFormatted`
* `util.transform.toDynamoDBFilterExpression`
* `util.transform.toDynamoDBConditionExpression`
* `util.dynamodb.toDynamoDB`
* `util.dynamodb.toString`
* `util.dynamodb.toStringSet`
* `util.dynamodb.toNumber`
* `util.dynamodb.toNumberSet`
* `util.dynamodb.toBinary`
* `util.dynamodb.toBinarySet`
* `util.dynamodb.toBoolean`
* `util.dynamodb.toNull`
* `util.dynamodb.toList`
* `util.dynamodb.toMap`
* `util.dynamodb.toMapValues`
* `util.dynamodb.toS3Object`
* `util.dynamodb.fromS3ObjectJson`

Assuming the following import:

```javascript
import * as rds from '@aws-appsync/utils/rds'
```

* `rds.createMySQLStatement`
* `rds.createPgStatement`
* `rds.insert`
* `rds.remove`
* `rds.select`
* `rds.toJsonObject`
* `rds.typeHint.DECIMAL`
* `rds.typeHint.JSON`
* `rds.typeHint.TIME`
* `rds.typeHint.DATE`
* `rds.typeHint.UUID`
* `rds.typeHint.TIMESTAMP`
* `rds.update`

Assuming the following import:

```javascript
import * as dynamodb from '@aws-appsync/utils/dynamodb'
```

* `dynamodb.get`
* `dynamodb.operations.add`
* `dynamodb.operations.append`
* `dynamodb.operations.decrement`
* `dynamodb.operations.increment`
* `dynamodb.operations.prepend`
* `dynamodb.operations.replace`
* `dynamodb.put`
* `dynamodb.remove`
* `dynamodb.scan`
* `dynamodb.update`

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未指定源文件或测试。请查看列出的 @aws-appsync/utils、rds 和 dynamodb 函数,然后评论你使用的 JavaScript resolver 函数,或对现有的匹配建议作出反应;当使用建议或反应发布后,所请求的社区意见征集即告完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, javascript
领域
api, backend
Issue 类型
功能
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。