localstack / localstack/appsync-utils
Feature requests for JS utility functions
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 9
- Forks
- 1
- Avg merge
- 30m
- Merged PRs (30d)
- 27
Description
# 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`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Review the listed @aws-appsync/utils, rds, and dynamodb functions, then comment with the JavaScript resolver functions you use or react to an existing matching suggestion; the requested community input is complete when the usage suggestion or reaction is posted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, javascript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100