Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Commit

Permalink
Update README.md with --add-s3-wrapper flag
Browse files Browse the repository at this point in the history
  • Loading branch information
minbi authored Nov 28, 2017
1 parent ea6c615 commit 6c5ddf4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@ aws-appsync-codegen introspect-schema schema.graphql --output schema.json

The purpose of this command is to generate types for query and mutation operations made against the schema (it will not generate types for the schema itself).

#### Swift

This tool will generate Swift code by default from a set of query definitions in `.graphql` files:

```sh
aws-appsync-codegen generate **/*.graphql --schema schema.json --output API.swift
```

The `--add-s3-wrapper` option can be specified to add in S3 wrapper code to the generated source.

#### TypeScript, Flow, or Scala

You can also generate type annotations for TypeScript, Flow, or Scala using the `--target` option:

```sh
Expand Down

0 comments on commit 6c5ddf4

Please sign in to comment.