Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Changed

- Fail codegen for operations using `@skip` or `@include` instead of generating types that break at runtime https://github.com/spawnia/sailor/pull/143

## v1.4.2

### Fixed
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ mutation Foo { ... }
query camelCase { ... }
```

### Client directives

Sailor does not support the client directives `@skip` and `@include`.
Code generation fails when it finds them.

Sailor generates one static result type per operation.
A field that the server omits conditionally has no place in that type.
Query the data unconditionally and decide in your application, or write separate operations.

### Generate code

Run `vendor/bin/sailor` to generate PHP code for your operations.
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

48 changes: 0 additions & 48 deletions examples/simple/expected/Operations/ClientDirectiveQuery.php

This file was deleted.

Loading
Loading