Sha256: 185106a50136aa5d74c526371de41a92d50fb82fe0d2be7aad7d5000256650d2

Contents?: true

Size: 844 Bytes

Versions: 5

Compression:

Stored size: 844 Bytes

Contents

# Schema Dump

GraphqlRails includes rake task to allow creating schema snapshots easier:

```bash
rake graphql_rails:schema:dump
```

## Dumping non default schema

You can have multiple graphql schemas. Read more about this in [routes section](components/routes). In order to generate schema for one of groups, provide optional `name` argument:

```bash
rake graphql_rails:schema:dump['your_group_name']
```

or using env variable `SCHEMA_GROUP_NAME`:

```bash
SCHEMA_GROUP_NAME=your_group_name rake graphql_rails:schema:dump
```

## Dumping schema in to non default path

By default schema will be dumped to `spec/fixtures/graphql_schema.graphql` path. If you want different schema path, add `GRAPHQL_SCHEMA_DUMP_PATH` env variable, like this:

```bash
GRAPHQL_SCHEMA_DUMP_PATH='path/to/my/schema.graphql' rake graphql_rails:schema:dump
```

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
graphql_rails-1.2.6 docs/other_tools/schema_dump.md
graphql_rails-1.2.4 docs/other_tools/schema_dump.md
graphql_rails-1.2.3 docs/other_tools/schema_dump.md
graphql_rails-1.2.2 docs/other_tools/schema_dump.md
graphql_rails-1.2.1 docs/other_tools/schema_dump.md