-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[resolvers]: argument binding to delegate resolvers (#1611)
+ [docs]: server docs update + [resolvers]: allow binding arguments by name to delegate resolvers and subscribers
- Loading branch information
Showing
64 changed files
with
1,081 additions
and
668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Executable Document | ||
|
||
Tanka GraphQL splits the GraphQL document into two parts: executable document and type system document. | ||
Executable document is the part of the document that is executed by the GraphQL server. Type system document | ||
is the part of the document that is used to define the GraphQL schema. | ||
|
||
Here's the definition of executable document: | ||
|
||
```csharp | ||
#include::xref://src:graphql.language/Nodes/ExecutableDocument.cs | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Executable Document | ||
|
||
Type System Document is used to define the GraphQL schema. It is used by the | ||
GraphQL server to validate the query and to resolve the query. | ||
|
||
Here's the definition of type system document: | ||
|
||
```csharp | ||
#include::xref://src:graphql.language/Nodes/TypeSystem/TypeSystemDocument.cs | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
- [Language](xref://01-parser.md) | ||
- [Imports](xref://02-imports.md) | ||
- [Parser](xref://01-parser.md) | ||
- [Executable Document](xref://02-executable-doc.md) | ||
- [Type System Document](xref://03-type-system-doc.md) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Tanka GraphQL Server | ||
|
||
Server provides a way to host GraphQL schema and execute queries against it. It runs on top | ||
of ASP.NET Core and has transports for HTTP and WebSockets. | ||
|
||
### Installation | ||
|
||
Server is available as a NuGet package: | ||
|
||
```csharp | ||
dotnet add package tanka.graphql.server | ||
``` | ||
|
||
See features on the side for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Features | ||
|
||
Features are show by a sample projects. Samples shows how to use the feature with minimal code. | ||
Full source code of each sample is available at [GitHub](https://github.com/pekkah/tanka-graphql). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Http and WebSockets | ||
|
||
This sample provides a basic HTTP and WebSockets server with GraphQL schema and query execution. | ||
It supports both GET and POST requests and uses WebSockets for subscriptions. | ||
|
||
WebSockets transport uses the newer [graphql-ws](https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md) protocol | ||
|
||
|
||
```csharp | ||
#include::xref://samples:GraphQL.Samples.Http/Program.cs | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Authorization | ||
|
||
This sample supports both websockets and HTTP requests. It uses a simple cookie authentication | ||
to authenticate the user and then applies a authorization policy to the GraphQL endpoint. | ||
|
||
|
||
```csharp | ||
#include::xref://samples:GraphQL.Samples.Authorization/Program.cs | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- [Features](xref://05-features/00-list.md) | ||
- [Http and WebSockets](xref://05-features/01-http.md) | ||
- [Authorization](xref://05-features/02-authorization.md) |
Oops, something went wrong.