Skip to main content

GmInvokeResult

The outcome of a gameModelInvoke call (return value, applied writes, and any error).

type GmInvokeResult {
eventId: String!
functionName: String!
success: Boolean!
returnValueJson: String
mutationsApplied: [GmMutationApplied!]!
errorMessage: String
}

Fields

GmInvokeResult.eventId ● String! non-null scalar

The id of the event logged for this invocation.

GmInvokeResult.functionName ● String! non-null scalar

The function that was invoked.

GmInvokeResult.success ● Boolean! non-null scalar

True if the invocation succeeded; false if it was rejected or errored.

GmInvokeResult.returnValueJson ● String scalar

JSON-encoded return value.

GmInvokeResult.mutationsApplied ● [GmMutationApplied!]! non-null object

The property writes that were applied (empty if none / on failure).

GmInvokeResult.errorMessage ● String scalar

Error message when success is false (e.g. authority denied or evaluation error).

Returned By

gameModelInvoke mutation