FSharp.Data.GraphQL


NameValueLookup

Namespace: FSharp.Data.GraphQL
Parent Module: Execution

Name value lookup used as output to be serialized into JSON. It has a form of a dictionary with fixed set of keys. Values under keys can be set, but no new entry can be added or removed, once lookup has been initialized. This dicitionay implements structural equality.

Constructors

ConstructorDescription
new(t)
Signature: (t:string []) -> NameValueLookup

CompiledName: .ctor

new(t)
Signature: (t:(string * obj) list) -> NameValueLookup

CompiledName: .ctor

new(keyValues)
Signature: (keyValues:KeyValuePair<string,obj> []) -> NameValueLookup

CompiledName: .ctor

Instance members

Instance memberDescription
Count
Signature: int

Return a number of entries stored in current lookup. It's fixed size.

CompiledName: get_Count

Update(key value)
Signature: key:string -> value:'?7814 -> unit
Type parameters: '?7814

Updates an entry's value under given key. It will throw an exception if provided key cannot be found in provided lookup.

Static members

Static memberDescription
ofList(l)
Signature: (l:(string * obj) list) -> NameValueLookup

Create new NameValueLookup from given list of key-value tuples.

Fork me on GitHub