Skip to content

Commit

Permalink
Doc&Fix: Fixed type, updated FAQ and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
d-exclaimation committed Jul 16, 2022
1 parent 292c592 commit 16504a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ You can add Pioneer into any existing Vapor application with any GraphQL schema
Add this line to add Pioneer as one of your dependencies.

```swift
.package(url: "https://github.com/d-exclaimation/pioneer", from: "0.8.6")
.package(url: "https://github.com/d-exclaimation/pioneer", from: "0.9.0")
```

Go to the `main.swift` or any Swift file where you apply your Vapor routing like your `routes.swift` file.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/features/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ order: 50
# Configuration

!!!success Custom Configuration options
From `0.8.6`, Pioneer brought in a structure that will allow easier configuration, which would only require you to pass in the config object into [Pioneer](/references/pioneer) initializer.
From `0.9.0`, Pioneer brought in a structure that will allow easier configuration, which would only require you to pass in the config object into [Pioneer](/references/pioneer) initializer.
!!!

This configuration structure would allow user of the library to create multiple configuration for Pioneer on different environment or situation.
Expand Down
8 changes: 4 additions & 4 deletions Documentation/guides/advanced/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ No, there is no custom error from Pioneer (as of now), just use what works best

Mostly.

- If the error(s) were thrown during context building, Pioneer will use the reason to build a GraphQL formatted error and set the response status code accordingly.
- If the error(s) were thrown during context building, Pioneer will use the reason to build a GraphQL formatted error, and set the response status and headers code accordingly.
==- Example

```swift Throwing Abort
Expand Down Expand Up @@ -136,7 +136,7 @@ Mostly.

===

- If the error(s) were thrown in the resolver functions, Pioneer will only throw back a GraphQL formatted error with the description of the error thrown but will not set the response status (unless it was set manually into the response object during the resolving function).
- If the error(s) were thrown in the resolver functions, Pioneer will only throw back a GraphQL formatted error with the description of the error thrown but will not set the response status nor headers (unless it was set manually into the response object during the resolving function).

==- Example

Expand Down Expand Up @@ -183,9 +183,9 @@ Not directly support [RxSwift](https://github.com/ReactiveX/RxSwift). However si

However, Pioneer is not compatible with [GraphQLRxSwift](https://github.com/GraphQLSwift/GraphQLRxSwift), and all [RxSwift](https://github.com/ReactiveX/RxSwift)'s observable must be converted into an `AsyncSequence`.

#### Does Pioneer support [ConcurrentEventSTream](https://github.com/GraphQLSwift/GraphQL/blob/master/Sources/GraphQL/Subscription/EventStream.swift)?
#### Does Pioneer support [ConcurrentEventStream](https://github.com/GraphQLSwift/GraphQL/blob/master/Sources/GraphQL/Subscription/EventStream.swift)?

Yes, [ConcurrentEventSTream](https://github.com/GraphQLSwift/GraphQL/blob/master/Sources/GraphQL/Subscription/EventStream.swift) worked pratically the same as [AsyncEventStream](/features/async-event-stream/#asynceventstream), but limit itself to only `AsyncThrowingStream`.
Yes, [ConcurrentEventStream](https://github.com/GraphQLSwift/GraphQL/blob/master/Sources/GraphQL/Subscription/EventStream.swift) worked pratically the same as [AsyncEventStream](/features/async-event-stream/#asynceventstream), but limit itself to only `AsyncThrowingStream`.

### PubSub

Expand Down
2 changes: 1 addition & 1 deletion Documentation/guides/getting-started/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/GraphQLSwift/Graphiti.git", from: "1.0.0"),
.package(url: "https://github.com/vapor/vapor.git", from: "4.61.1"),
.package(url: "https://github.com/d-exclaimation/pioneer", from: "0.8.6")
.package(url: "https://github.com/d-exclaimation/pioneer", from: "0.9.0")
],
targets: [
.target(
Expand Down

0 comments on commit 16504a5

Please sign in to comment.