GraphQL.net


GraphQL.net

Documentation

The GraphQL.net library can be installed from NuGet:
PM> Install-Package graphql-net 

Example

This example demonstrates using the parser.

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
#r "GraphQL/GraphQL.dll"
open GraphQL

printfn "%A" <| Parser.parse """{  
    uri,
    contact {
      phone,
      name
    },
    height
  }"""  

Some more info

Samples & documentation

The library comes with comprehensible documentation. It can include tutorials automatically generated from *.fsx files in the content folder. The API reference is automatically generated from Markdown comments in the library implementation.

  • Tutorial contains a further explanation of this sample library.

  • API Reference contains automatically generated documentation for all types, modules and functions in the library. This includes additional brief samples on using most of the functions.

Contributing and copyright

The project is hosted on GitHub where you can report issues, fork the project and submit pull requests. If you're adding a new public API, please also consider adding samples that can be turned into a documentation. You might also want to read the library design notes to understand how it works.

The library is available under MIT license, which allows modification and redistribution for both commercial and non-commercial purposes. For more information see the License file in the GitHub repository.

namespace GraphQL
val printfn : format:Printf.TextWriterFormat<'T> -> 'T

Full name: Microsoft.FSharp.Core.ExtraTopLevelOperators.printfn
module Parser

from GraphQL
val parse : (string -> AST.Document)

Full name: GraphQL.Parser.parse
Fork me on GitHub