IGraphQLMap.Add Method
Adds or sets a value associated with the specified key.
Remarks
Behavior is different from regular dictionary: if the Key does not exist, it will be created. If the Key already exists, it will replace the existing value by the new one. No exception is raised.
Syntax
Unit: GraphQL.Types
procedure IGraphQLMap.Add(const Key: string; const Value: TValue); virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | Key | string | |
const | Value | TValue |