Guides
Tutorials
Interface implemented to build GraphQL fields.
interface ApiPlatform\GraphQl\Type\FieldsBuilderInterface
{
public getNodeQueryFields(): array
public getItemQueryFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $configuration): array
public getCollectionQueryFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $configuration): array
public getMutationFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation): array
public getSubscriptionFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation): array
public getResourceObjectTypeFields(null|string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, bool $input, int $depth, null|array $ioMetadata): array
public resolveResourceArgs(array $args, ApiPlatform\Metadata\GraphQl\Operation $operation): array
}
interface ApiPlatform\GraphQl\Type\FieldsBuilderInterface
{
public getNodeQueryFields(): array
public getItemQueryFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $configuration): array
public getCollectionQueryFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $configuration): array
public getMutationFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation): array
public getSubscriptionFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation): array
public getResourceObjectTypeFields(null|string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, bool $input, int $depth, null|array $ioMetadata): array
public resolveResourceArgs(array $args, ApiPlatform\Metadata\GraphQl\Operation $operation): array
}
Gets the fields of a node for a query.
public getNodeQueryFields(): array
public getNodeQueryFields(): array
array
Gets the item query fields of the schema.
public getItemQueryFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $configuration): array
public getItemQueryFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $configuration): array
resourceClass | string | |
operation | ApiPlatform\Metadata\GraphQl\Operation | |
configuration | array |
array
Gets the collection query fields of the schema.
public getCollectionQueryFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $configuration): array
public getCollectionQueryFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $configuration): array
resourceClass | string | |
operation | ApiPlatform\Metadata\GraphQl\Operation | |
configuration | array |
array
Gets the mutation fields of the schema.
public getMutationFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation): array
public getMutationFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation): array
resourceClass | string | |
operation | ApiPlatform\Metadata\GraphQl\Operation |
array
Gets the subscription fields of the schema.
public getSubscriptionFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation): array
public getSubscriptionFields(string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation): array
resourceClass | string | |
operation | ApiPlatform\Metadata\GraphQl\Operation |
array
Gets the fields of the type of the given resource.
public getResourceObjectTypeFields(null|string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, bool $input, int $depth, null|array $ioMetadata): array
public getResourceObjectTypeFields(null|string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, bool $input, int $depth, null|array $ioMetadata): array
resourceClass | string | |
operation | ApiPlatform\Metadata\GraphQl\Operation | |
input | bool | |
depth | int | |
ioMetadata | array |
array
Resolve the args of a resource by resolving its types.
public resolveResourceArgs(array $args, ApiPlatform\Metadata\GraphQl\Operation $operation): array
public resolveResourceArgs(array $args, ApiPlatform\Metadata\GraphQl\Operation $operation): array
args | array | |
operation | ApiPlatform\Metadata\GraphQl\Operation |
array