SparkGameDataService

The Game Data Service.

N

signature N(string shortCode)

returns SparkDataNumberOperand

A condition builder for a numeric attribute

S

signature S(string shortCode)

returns SparkDataStringOperand

A condition builder for a string attribute

createItem

signature createItem(string type, string id)

returns SparkDataItem

Create a new item that can later be persisted

getItem

signature getItem(string type, string id)

returns SparkDataGetResult

Loads an item from the database by type and id

queryItems

signature queryItems(string type, SparkDataCondition condition, SparkDataSortOrder sortOrder)

returns SparkDataQueryResult

Queries the indices for a number of items that match the supplied condition. Queries are eventually consistent. If you use queryItems immediately after you've inserted data, you might not get the expected results returned.

sort

signature sort(string shortCode, boolean ascending)

returns SparkDataSortOrder

A sort builder for ordering query results

Did this page help you? Please enter your feedback below. For questions about using this part of the platform, please contact support here