localstack / localstack/appsync-utils

Feature requests for JS utility functions

Offen
#19 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

enhancement
Vorherrschende Sprache
JavaScript
Sterne
9
Forks
1
Ø Merge
30 Min.
Gemergte PRs (30 T.)
27

Beschreibung

# 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`

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Es werden keine Quelldateien oder Tests genannt. Überprüfe die aufgeführten @aws-appsync/utils-, rds- und dynamodb-Funktionen und kommentiere mit den von dir verwendeten JavaScript-Resolver-Funktionen oder reagiere auf einen bestehenden passenden Vorschlag; die angeforderte Community-Eingabe ist abgeschlossen, sobald der Nutzungsvorschlag oder die Reaktion gepostet wurde.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, javascript
Bereich
api, backend
Issue-Typ
Feature
Schwierigkeit
1/5
Geschätzter Aufwand
Unter einer Stunde
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.