class Schema extends AbstractObject implements IdAble, Node

A GraphQL introspection schema that can be inspected and merged.

Properties

$lastQuery from  AbstractObject

Methods

__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

contents()

Serialize the schema back to introspection JSON.

Id
id()

A unique identifier for this Schema.

merge(Json $moduleTypes, string $moduleName)

Merge a module's introspection-shaped type definitions into the schema, returning the combined schema.

Details

in AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

Parameters

AbstractClient $client
QueryBuilderChain $queryBuilderChain

in AbstractObject at line 19
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

Parameters

QueryBuilder $leafQueryBuilder
string $leafKey

Return Value

null|array|string|int|float|bool

at line 19
Json contents()

Serialize the schema back to introspection JSON.

Return Value

Json

at line 28
Id id()

A unique identifier for this Schema.

Return Value

Id

at line 37
Schema merge(Json $moduleTypes, string $moduleName)

Merge a module's introspection-shaped type definitions into the schema, returning the combined schema.

Parameters

Json $moduleTypes
string $moduleName

Return Value

Schema