Class: Operation

(abstract) Operation()

Base class for Query and Mutation.

Constructor

(abstract) new Operation()

Source:

Classes

Operation

Members

isAnonymous

Whether the operation is anonymous (i.e. has no name).

Source:

Methods

toString() → {String}

Returns the GraphQL query or mutation string (e.g. query myQuery { cat { name } }).

Source:
Returns:

The GraphQL query or mutation string.

Type
String