IGraphQLMap Interface
Represents a map of key/value pairs that are accessible by the key or index.
Remarks
This is the main type that represents a GraphQL map. Whenever you need to represent a mapped value in GraphQL you should use this interface. Whenever the framework provides you with GraphQL information that represents a map, it will be represented as this interface.
Syntax
Unit: GraphQL.Types
IGraphQLMap = interface(IInterface);
Methods
Name | Description |
---|---|
GetItem | Gets the value associated with the specified key. |
GetKey | Returns the Key value at the specified index. |
GetValue | Returns the value at the specified index. |
Add | Adds or sets a value associated with the specified key. |
Contains | Returns true if the map contains the specified key. False otherwise. |
Count | Returns the number of items (key/value pairs) in the map. |
Properties
Name | Description |
---|---|
Items[const Key] | Gets the value associated with the specified key. |
Keys[Index] | Returns the Key value at the specified index. |
Values[Index] | Returns the value at the specified index. |