> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/classes/datastoreincrementoptions.md).

# DataStoreIncrementOptions

DataStoreIncrementOptions : `Instance`

## Overview

An object used to specify additional information (metadata) when using the GlobalDataStore:IncrementAsync() method.

## Properties

## Methods

### GetMetadata

Returns additional information (metadata) of a specific object.

#### Parameters

#### Return

| `Dictionary` | Additional information (metadata) in key-value form. |
| ------------ | ---------------------------------------------------- |

#### Code Samples

```lua
local options = Instance.new("DataStoreIncrementOptions")
options:SetMetadata(
{
    Reason = "DailyMission"
})

print(options:GetMetadata())
```

### SetMetadata

Registers additional information (metadata) to be stored together when using the GlobalDataStore:IncrementAsync() method.

#### Parameters

| `Dictionary` InMetaDataTable | Additional information (metadata) in which several properties are specified in the form of key-value. |
| ---------------------------- | ----------------------------------------------------------------------------------------------------- |

#### Return

| `void` |   |
| ------ | - |

#### Code Samples

```lua
local DataStoreService = game:GetService("DataStoreService")
local GoldStore = DataStoreService:GetDataStore("PlayerGold")

local success, errorMessageOrLoadValue = pcall(function()
    local userIds = nil
    local options = Instance.new("DataStoreIncrementOptions")
    options:SetMetadata(
    {
        Reason = "DailyMission"
    })

    GoldStore:IncrementAsync(player.UserId, 1, userIds, options)
end)
```

## Events
