1- // Uncomment those to use build script client assembly
2- //#r "../../../bin/FSharp.Data.GraphQL.Client/net47/FSharp.Data.GraphQL.Client.dll"
3- //#r "../../../bin/FSharp.Data.GraphQL.Shared/net47/FSharp.Data.GraphQL.Shared.dll"
4-
51// Uncomment those to use build script client assembly using netstandard2.0
62//#r "../../../bin/FSharp.Data.GraphQL.Shared/netstandard2.0/FSharp.Data.GraphQL.Shared.dll"
7- //#r "../../../bin/FSharp.Data.GraphQL.Client/netstandard2.0/netstandard.dll"
83//#r "../../../bin/FSharp.Data.GraphQL.Client/netstandard2.0/FSharp.Data.GraphQL.Client.dll"
94
10- // Uncomment those to use dotnet build command for the client assembly
11- // #r "../../../src/FSharp.Data.GraphQL.Shared/bin/Debug/net47/FSharp.Data.GraphQL.Shared.dll"
12- // #r "../../../src/FSharp.Data.GraphQL.Client/bin/Debug/net47/FSharp.Data.GraphQL.Client.dll"
13-
145//Uncomment those to use dotnet build command for the client assembly using netstandard2.0
156#r " ../../../src/FSharp.Data.GraphQL.Shared/bin/Debug/netstandard2.0/FSharp.Data.GraphQL.Shared.dll"
16- #r " ../../../src/FSharp.Data.GraphQL.Client/bin/Debug/netstandard2.0/netstandard.dll"
177#r " ../../../src/FSharp.Data.GraphQL.Client/bin/Debug/netstandard2.0/FSharp.Data.GraphQL.Client.dll"
188
199open System
@@ -33,12 +23,12 @@ let mutation =
3323 }""" >()
3424
3525let upload () =
36- let input =
26+ let input =
3727 [| new Upload( File.OpenRead( " txt_file.txt" ), " text.txt" , ownsStream = true )
3828 new Upload( File.OpenRead( " png_file.png" ), " image.png" , ownsStream = true ) |]
3929 let request = MyProvider.Types.MultipleUploadRequest( input)
4030 let result = mutation.Run( request)
4131 input |> Array.iter ( fun x -> ( x :> IDisposable) .Dispose())
4232 printfn " Data: %A " result.Data
4333
44- upload()
34+ upload()
0 commit comments