Skip to content

GeneratorInterface

Type
Interface
Namespace
craft\gql\base
Implemented by
craft\gql\types\generators\AddressType, craft\gql\types\generators\AssetType, craft\gql\types\generators\CategoryType, craft\gql\types\generators\ElementType, craft\gql\types\generators\EntryType, craft\gql\types\generators\GlobalSetType, craft\gql\types\generators\TableRowType, craft\gql\types\generators\TagType, craft\gql\types\generators\UserType
Since
3.3.0

GeneratorInterface defines the common interface to be implemented by GraphQL type generator classes.

View source

Public Methods

MethodDescription
generateTypes()Generate GraphQL types.

generateTypes()

Generate GraphQL types.

View source

Arguments

  • $context (mixed) – Context for generated types

Returns

craft\gql\base\ObjectType[]