Automattic\WooCommerce\Vendor\GraphQL\Type

Introspection::schemaMetaFieldDefpublic staticWC 1.0

Метод класса: Introspection{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = Introspection::schemaMetaFieldDef(): FieldDefinition;

Код Introspection::schemaMetaFieldDef() WC 10.9.1

public static function schemaMetaFieldDef(): FieldDefinition
{
    return self::$cachedInstances[self::SCHEMA_FIELD_NAME] ??= new FieldDefinition([
        'name' => self::SCHEMA_FIELD_NAME,
        'type' => Type::nonNull(self::_schema()),
        'description' => 'Access the current type schema of this server.',
        'args' => [],
        'resolve' => static fn ($source, array $args, $context, ResolveInfo $info): Schema => $info->schema,
    ]);
}