localstack / localstack/appsync-utils

Feature requests for JS utility functions

オープン
#19 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement
主要言語
JavaScript
スター
9
フォーク
1
平均マージ
30分
マージ済み PR(30日)
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 👍 on the comment, and we will use this to prioritise the functions that are most requested.

Currently implemented functions

Assuming the following import:

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:

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:

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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

ソースファイルやテストは指定されていません。列挙されている @aws-appsync/utils、rds、dynamodb の関数を確認し、使用している JavaScript リゾルバー関数をコメントするか、既存の該当する提案にリアクションしてください。求められているコミュニティからの意見は、使用方法の提案またはリアクションが投稿された時点で完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, javascript
領域
api, backend
issue の種類
機能追加
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。