You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's type safe. Things like invalid fields or invalid return types will be checked at compile time.
@@ -79,14 +79,6 @@ Go to the [GraphiQL sample directory](https://github.com/bazingatechnologies/FSh
79
79
}
80
80
```
81
81
82
-
### Relay.js starter kit
83
-
84
-
A [second sample](https://github.com/bazingatechnologies/FSharp.Data.GraphQL/tree/dev/samples/relay-starter-kit) is a F#-backed version of of popular Relay Starter Kit - an example application using React.js + Relay with Relay-compatible server API.
85
-
86
-
To run it, build `FSharp.Data.GraphQL` and `FSharp.Data.GraphQL.Relay` projects using Debug settings. Then start server by running `server.fsx` script in your FSI - this will start a relay-compatible F# server on port 8083. Then build node.js frontend by getting all dependencies (`npm i`) and running it (`npm run serve | npm run dev`) - this will start webpack server running React application using Relay for managing application state. You can visit it on [http://localhost:8083/](http://localhost:8083/) .
87
-
88
-
In order to update client schema, visit [http://localhost:8083/](http://localhost:8083/) and copy-paste the response (which is the introspection query result from the current F# server) into *data/schema.json*.
89
-
90
82
## Stream features
91
83
92
84
The `stream` directive now has additional features, like batching (buffering) by interval and/or batch size. To make it work, a custom stream directive must be placed inside the `SchemaConfig.Directives` list, this custom directive containing two optional arguments called `interval` and `preferredBatchSize`:
@@ -192,7 +184,7 @@ type MyProvider = GraphQLProvider<"swapi_schema.json">
192
184
From now on, you can start running queries and mutations:
193
185
194
186
```fsharp
195
-
let operation =
187
+
let operation =
196
188
MyProvider.Operation<"""query q {
197
189
hero (id: "1001") {
198
190
name
@@ -393,7 +385,7 @@ And the value recovered by the filter in the query is usable in the `ResolveFiel
0 commit comments