The international conference on the API Platform Framework
Learn more about the event, register for the conference, and get ready for two days of inspiration, ideas, and knowledge-sharing with our incredible lineup of renowned specialists and advocates.
Register nowBuilds the GraphQL types.
class ApiPlatform\GraphQl\Type\TypeBuilder implements , `<a href="/docs/v3.1/references/GraphQl/Type/TypeBuilderEnumInterface">ApiPlatform\GraphQl\Type\TypeBuilderEnumInterface
{
public __construct($typesContainer, callable $defaultFieldResolver, Psr\Container\ContainerInterface $fieldsBuilderLocator, `<a href="/docs/v3.1/references/State/Pagination/Pagination">ApiPlatform\State\Pagination\Pagination $pagination)
public getResourceObjectType(null|string $resourceClass, $resourceMetadataCollection, `<a href="/docs/v3.1/references/Metadata/GraphQl/Operation">ApiPlatform\Metadata\GraphQl\Operation $operation, bool $input, bool $wrapped, int $depth): GraphQL\Type\Definition\Type
public getNodeInterface(): GraphQL\Type\Definition\InterfaceType
public getResourcePaginatedCollectionType(GraphQL\Type\Definition\Type $resourceType, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation): GraphQL\Type\Definition\Type
public getPaginatedCollectionType(GraphQL\Type\Definition\Type $resourceType, ApiPlatform\Metadata\GraphQl\Operation $operation): GraphQL\Type\Definition\Type
public getEnumType(ApiPlatform\Metadata\GraphQl\Operation $operation): GraphQL\Type\Definition\Type
public isCollection(Symfony\Component\PropertyInfo\Type $type): bool
}
public __construct($typesContainer, callable $defaultFieldResolver, Psr\Container\ContainerInterface $fieldsBuilderLocator, `<a href="/docs/v3.1/references/State/Pagination/Pagination">ApiPlatform\State\Pagination\Pagination $pagination)
typesContainer | `ApiPlatform\GraphQl\Type\TypesContainerInterface` | |
defaultFieldResolver | callable | |
fieldsBuilderLocator | Psr\Container\ContainerInterface | |
pagination | `ApiPlatform\State\Pagination\Pagination` |
Gets the object type of the given resource.Gets the object type of the given resource.
public getResourceObjectType(null|string $resourceClass, $resourceMetadataCollection, `<a href="/docs/v3.1/references/Metadata/GraphQl/Operation">ApiPlatform\Metadata\GraphQl\Operation $operation, bool $input, bool $wrapped, int $depth): GraphQL\Type\Definition\Type
resourceClass | string | |
resourceMetadataCollection | `ApiPlatform\Metadata\Resource\ResourceMetadataCollection` | |
operation | `ApiPlatform\Metadata\GraphQl\Operation` | |
input | bool | |
wrapped | bool | |
depth | int |
GraphQL\Type\Definition\Type
Get the interface type of a node.Get the interface type of a node.
public getNodeInterface(): GraphQL\Type\Definition\InterfaceType
GraphQL\Type\Definition\InterfaceType
Gets the type of a paginated collection of the given resource type.
public getResourcePaginatedCollectionType(GraphQL\Type\Definition\Type $resourceType, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation): GraphQL\Type\Definition\Type
resourceType | GraphQL\Type\Definition\Type | |
resourceClass | string | |
operation | `ApiPlatform\Metadata\GraphQl\Operation` |
GraphQL\Type\Definition\Type
Gets the type of a paginated collection of the given resource type.
public getPaginatedCollectionType(GraphQL\Type\Definition\Type $resourceType, ApiPlatform\Metadata\GraphQl\Operation $operation): GraphQL\Type\Definition\Type
resourceType | GraphQL\Type\Definition\Type | |
operation | `ApiPlatform\Metadata\GraphQl\Operation` |
GraphQL\Type\Definition\Type
public getEnumType(ApiPlatform\Metadata\GraphQl\Operation $operation): GraphQL\Type\Definition\Type
operation | `ApiPlatform\Metadata\GraphQl\Operation` |
GraphQL\Type\Definition\Type
Returns true if a type is a collection.Returns true if a type is a collection.
public isCollection(Symfony\Component\PropertyInfo\Type $type): bool
type | Symfony\Component\PropertyInfo\Type |
bool
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more