Guides
Tutorials
Interface implemented to build a GraphQL type.
interface ApiPlatform\GraphQl\Type\TypeBuilderInterface
{
public getResourceObjectType(null|string $resourceClass, ApiPlatform\Metadata\Resource\ResourceMetadataCollection $resourceMetadataCollection, ApiPlatform\Metadata\GraphQl\Operation $operation, bool $input, bool $wrapped, int $depth): GraphQL\Type\Definition\ObjectType|GraphQL\Type\Definition\NonNull
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 isCollection(Symfony\Component\PropertyInfo\Type $type): bool
}
interface ApiPlatform\GraphQl\Type\TypeBuilderInterface
{
public getResourceObjectType(null|string $resourceClass, ApiPlatform\Metadata\Resource\ResourceMetadataCollection $resourceMetadataCollection, ApiPlatform\Metadata\GraphQl\Operation $operation, bool $input, bool $wrapped, int $depth): GraphQL\Type\Definition\ObjectType|GraphQL\Type\Definition\NonNull
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 isCollection(Symfony\Component\PropertyInfo\Type $type): bool
}
Gets the object type of the given resource.
public getResourceObjectType(null|string $resourceClass, ApiPlatform\Metadata\Resource\ResourceMetadataCollection $resourceMetadataCollection, ApiPlatform\Metadata\GraphQl\Operation $operation, bool $input, bool $wrapped, int $depth): GraphQL\Type\Definition\ObjectType|GraphQL\Type\Definition\NonNull
public getResourceObjectType(null|string $resourceClass, ApiPlatform\Metadata\Resource\ResourceMetadataCollection $resourceMetadataCollection, ApiPlatform\Metadata\GraphQl\Operation $operation, bool $input, bool $wrapped, int $depth): GraphQL\Type\Definition\ObjectType|GraphQL\Type\Definition\NonNull
resourceClass | string | |
resourceMetadataCollection | ApiPlatform\Metadata\Resource\ResourceMetadataCollection | |
operation | ApiPlatform\Metadata\GraphQl\Operation | |
input | bool | |
wrapped | bool | |
depth | int |
GraphQL\Type\Definition\ObjectType
GraphQL\Type\Definition\NonNull
Get the interface type of a node.
public getNodeInterface(): GraphQL\Type\Definition\InterfaceType
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
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
Returns true if a type is a collection.
public isCollection(Symfony\Component\PropertyInfo\Type $type): bool
public isCollection(Symfony\Component\PropertyInfo\Type $type): bool
type | Symfony\Component\PropertyInfo\Type |
bool