Skip to content

Commit

Permalink
drop json/yaml configuration support
Browse files Browse the repository at this point in the history
  • Loading branch information
meskill committed Dec 9, 2024
1 parent b51bf80 commit acc85dc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 583 deletions.
2 changes: 1 addition & 1 deletion docs/apollo-federation-subgraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Skip this step if you don't have entities for now or want to add them later.

Now you need to add [entity resolvers](https://www.apollographql.com/docs/federation/entities/) to the Tailcall config to make it act as a subgraph.

To do this, you need to define resolver on types by using one of the [directives](./configuration.mdx) that resolve the data. Use [`{{.value}}`](https://tailcall.run/docs/graphql-resolver-context-tailcall/#value) to access the fields that act as a federation `@key` and will be provided by the Federation Router when making the request to this subgraph.
To do this, you need to define resolver on types by using one of the [directives](./directives.md) that resolve the data. Use [`{{.value}}`](https://tailcall.run/docs/graphql-resolver-context-tailcall/#value) to access the fields that act as a federation `@key` and will be provided by the Federation Router when making the request to this subgraph.

```graphql
type Post
Expand Down
24 changes: 10 additions & 14 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ The `check` command allows for files. Specify each file path, separated by a spa
tailcall check --schema ./path/to/file1.graphql ./path/to/file2.graphql
```

### --format

This is an optional command which allows changing the format of the input file. It accepts `gql` or `graphql`,`yml` or `yaml`, `json` .

```bash
tailcall check ./path/to/file1.graphql ./path/to/file2.graphql --format json
```

### --verify-ssl

Controls SSL/TLS certificate verification when loading remote configuration files.
Expand Down Expand Up @@ -119,13 +111,17 @@ tailcall init <file_path>

This command prompts for file creation and configuration, creating the following files:

| File Name | Description |
| ------------------------: | --------------------------------------------------------------------------------------------------------------------------------------- |
| [.tailcallrc.schema.json] | Provides autocomplete in your editor when the configuration is written in `json` or `yml` format. |
| [.graphqlrc.yml] | An IDE configuration that references your GraphQL configuration (if it's in `.graphql` format) and the following `.tailcallrc.graphql`. |
| [.tailcallrc.graphql] | Contains Tailcall specific auto-completions for `.graphql` format. |
| File Name | Description |
| --------: | ----------- |

<!-- TODO: uncomment when the Taillcall configuration will in separate file -->
<!-- | [.tailcallrc.schema.json] | Provides autocomplete in your editor for the tailcall configuration written in `json` or `yml` format. | -->

| [.graphqlrc.yml] | An IDE configuration that references your GraphQL schema and the following `.tailcallrc.graphql`. |
| [.tailcallrc.graphql] | Contains Tailcall specific auto-completions for `.graphql` format. |

<!-- [.tailcallrc.schema.json]: https://github.com/tailcallhq/tailcall/blob/main/generated/.tailcallrc.schema.json -->

[.tailcallrc.schema.json]: https://github.com/tailcallhq/tailcall/blob/main/generated/.tailcallrc.schema.json
[.graphqlrc.yml]: https://the-guild.dev/graphql/config/docs
[.tailcallrc.graphql]: https://github.com/tailcallhq/tailcall/blob/main/generated/.tailcallrc.graphql

Expand Down
Loading

0 comments on commit acc85dc

Please sign in to comment.