SingularTypeInterface ​
- Type
- Interface
- Namespace
- craft\gql\base
- Implemented by
- craft\gql\interfaces\Element, craft\gql\interfaces\Structure, craft\gql\interfaces\elements\Address, craft\gql\interfaces\elements\Asset, craft\gql\interfaces\elements\Category, craft\gql\interfaces\elements\Entry, craft\gql\interfaces\elements\GlobalSet, craft\gql\interfaces\elements\Tag, craft\gql\interfaces\elements\User, craft\gql\types\DateTime, craft\gql\types\Money, craft\gql\types\Number, craft\gql\types\QueryArgument
- Since
- 4.0.0
SingularTypeInterface defines the common interface to be implemented by all types that have no similar types and, thus, aren't generated.
Public Methods ​
Method | Description |
---|---|
getName() | Return the name of the GraphQL type. |
getType() | Return an instance of the GraphQL type. |
getName()
​
Return the name of the GraphQL type.
Returns ​
getType()
​
Return an instance of the GraphQL type.
Returns ​
\GraphQL\Type\Definition\Type