WooCommerce Code Reference

Type
in package

Static facade for GraphQL scalar types and type modifiers referenced by autogenerated resolvers.

Autogenerated code emitted by ApiBuilder only touches the underlying GraphQL engine through this (and the other classes in the Api\Infrastructure\Schema namespace), so the engine can be swapped without invalidating already-committed generated code. Return types are intentionally omitted so a future migration can change the concrete return type without breaking callers.

Table of Contents

boolean()  : mixed
The built-in GraphQL Boolean scalar.
float()  : mixed
The built-in GraphQL Float scalar.
id()  : mixed
The built-in GraphQL ID scalar.
int()  : mixed
The built-in GraphQL Int scalar.
listOf()  : mixed
Wrap a schema type as a list (`[T]`).
nonNull()  : mixed
Wrap a nullable schema type as non-null (`T!`).
string()  : mixed
The built-in GraphQL String scalar.

Methods

listOf()

Wrap a schema type as a list (`[T]`).

public static listOf(mixed $inner) : mixed
Parameters
$inner : mixed

A schema type.

Return values
mixed

nonNull()

Wrap a nullable schema type as non-null (`T!`).

public static nonNull(mixed $inner) : mixed
Parameters
$inner : mixed

A nullable schema type.

Return values
mixed