Skip to content

Commit 25dd218

Browse files
committed
Installed Altair and GraphiQL to sample projects
1 parent 7b22ff4 commit 25dd218

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

Packages.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
<PackageReference Update="EntityFramework" Version="1.*" />
7070
<PackageReference Update="FSharp.Data.TypeProviders" Version="1.*" />
7171
<PackageReference Update="Giraffe" Version="6.*" />
72+
<PackageReference Update="GraphQL.Server.Ui.Altair" Version="7.*" />
73+
<PackageReference Update="GraphQL.Server.Ui.GraphiQL" Version="7.*" />
7274
<PackageReference Update="GraphQL.Server.Ui.Playground" Version="7.*" />
7375
<PackageReference Update="GraphQL.Server.Ui.Voyager" Version="7.*" />
7476
<PackageReference Update="HotChocolate.AspNetCore" Version="13.*" />

samples/chat-app/server/FSharp.Data.GraphQL.Samples.ChatApp.fsproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
<ItemGroup>
99
<PackageReference Include="FsToolkit.ErrorHandling.TaskResult" />
10+
<PackageReference Include="GraphQL.Server.Ui.Altair" />
11+
<PackageReference Include="GraphQL.Server.Ui.GraphiQL" />
1012
<PackageReference Include="GraphQL.Server.Ui.Playground" />
1113
<PackageReference Include="GraphQL.Server.Ui.Voyager" />
1214
<PackageReference Include="HotChocolate.AspNetCore" />

samples/chat-app/server/Program.fs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ let main args =
2727
let app = builder.Build ()
2828

2929
if app.Environment.IsDevelopment () then
30-
app.UseGraphQLPlayground ("/playground") |> ignore
31-
app.UseGraphQLVoyager ("/voyager") |> ignore
30+
app.UseGraphQLAltair "/altair" |> ignore
31+
app.UseGraphQLGraphiQL "/graphiql" |> ignore
32+
app.UseGraphQLPlayground "/playground" |> ignore
33+
app.UseGraphQLVoyager "/voyager" |> ignore
3234
app.UseRouting () |> ignore
3335
app.UseEndpoints (fun endpoints -> endpoints.MapBananaCakePop (PathString "/cakePop") |> ignore)
3436
|> ignore

samples/star-wars-api/FSharp.Data.GraphQL.Samples.StarWarsApi.fsproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
<ItemGroup Label="PackageReferences">
1010
<PackageReference Include="FsToolkit.ErrorHandling.TaskResult" />
11+
<PackageReference Include="GraphQL.Server.Ui.Altair" />
12+
<PackageReference Include="GraphQL.Server.Ui.GraphiQL" />
1113
<PackageReference Include="GraphQL.Server.Ui.Playground" />
1214
<PackageReference Include="GraphQL.Server.Ui.Voyager" />
1315
<PackageReference Include="HotChocolate.AspNetCore" />

samples/star-wars-api/Startup.fs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ type Startup private () =
3535
clearResponse >=> setStatusCode 500
3636

3737
if env.IsDevelopment () then
38-
app.UseGraphQLPlayground ("/playground") |> ignore
39-
app.UseGraphQLVoyager ("/voyager") |> ignore
38+
app.UseGraphQLAltair "/altair" |> ignore
39+
app.UseGraphQLGraphiQL "/graphiql" |> ignore
40+
app.UseGraphQLPlayground "/playground" |> ignore
41+
app.UseGraphQLVoyager "/voyager" |> ignore
4042
app.UseRouting () |> ignore
4143
app.UseEndpoints (fun endpoints -> endpoints.MapBananaCakePop (PathString "/cakePop") |> ignore)
4244
|> ignore

0 commit comments

Comments
 (0)