localstack / localstack/appsync-utils

Feature requests for JS utility functions

Đang mở
#19 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

enhancement
Ngôn ngữ chính
JavaScript
Star
9
Fork
1
Merge trung bình
30 phút
Pull request đã merge (30 ngày)
27

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Không có tệp mã nguồn hoặc bài kiểm thử nào được nêu. Hãy xem xét các hàm @aws-appsync/utils, rds và dynamodb được liệt kê, sau đó bình luận bằng các hàm resolver JavaScript mà bạn sử dụng hoặc bày tỏ phản ứng với một đề xuất hiện có phù hợp; ý kiến đóng góp được yêu cầu từ cộng đồng được xem là hoàn tất khi đề xuất về cách sử dụng hoặc phản ứng được đăng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
aws, javascript
Lĩnh vực
api, backend
Loại issue
Tính năng
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.