forked from yuth/amplify-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add @PrimaryKey directive to Transformer v2 (aws-amplify#7797)
- Loading branch information
Showing
16 changed files
with
5,051 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
**/__mocks__/** | ||
**/__tests__/** | ||
src | ||
tsconfig.json | ||
tsconfig.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# GraphQL @primaryKey Transformer | ||
|
||
# Reference Documentation | ||
|
||
### @primaryKey | ||
|
||
The `@primaryKey` directive allows you to define the primary key for your relational data. | ||
|
||
#### Definition | ||
|
||
```graphql | ||
directive @primaryKey(sortKeyFields: [String]) on FIELD_DEFINITION | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"name": "@aws-amplify/graphql-index-transformer", | ||
"version": "0.1.0", | ||
"description": "Amplify GraphQL index and key transformers", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/aws-amplify/amplify-cli.git", | ||
"directory": "packages/amplify-graphql-index-transformer" | ||
}, | ||
"author": "Amazon Web Services", | ||
"license": "Apache-2.0", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"keywords": [ | ||
"graphql", | ||
"cloudformation", | ||
"aws", | ||
"amplify" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "tsc", | ||
"watch": "tsc -w", | ||
"clean": "rimraf ./lib", | ||
"test": "jest" | ||
}, | ||
"dependencies": { | ||
"@aws-amplify/graphql-transformer-core": "0.7.2", | ||
"@aws-amplify/graphql-transformer-interfaces": "1.7.0", | ||
"@aws-cdk/aws-appsync": "~1.72.0", | ||
"@aws-cdk/aws-dynamodb": "~1.72.0", | ||
"graphql": "^14.5.8", | ||
"graphql-mapping-template": "4.18.1", | ||
"graphql-transformer-common": "4.19.6" | ||
}, | ||
"devDependencies": { | ||
"@aws-amplify/graphql-model-transformer": "~0.4.6", | ||
"@aws-cdk/assert": "~1.72.0" | ||
}, | ||
"jest": { | ||
"transform": { | ||
"^.+\\.(ts|tsx)?$": "ts-jest" | ||
}, | ||
"testRegex": "(src/__tests__/.*.test.ts)$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"json", | ||
"node" | ||
], | ||
"collectCoverage": true | ||
} | ||
} |
Oops, something went wrong.