new OperationMessage(type) → {OperationMessage}
Construct a generic GraphQL operation message.
Parameters:
Name | Type | Description |
---|---|---|
type |
string | Message type |
Throws:
-
Throws a type error if the provided message type is invalid or empty.
- Type
- TypeError
Returns:
- Type
- OperationMessage