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
boolean()
The built-in GraphQL Boolean scalar.
public
static boolean() : mixed
Return values
mixed —float()
The built-in GraphQL Float scalar.
public
static float() : mixed
Return values
mixed —id()
The built-in GraphQL ID scalar.
public
static id() : mixed
Return values
mixed —int()
The built-in GraphQL Int scalar.
public
static int() : mixed
Return values
mixed —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 —string()
The built-in GraphQL String scalar.
public
static string() : mixed
