Automattic\WooCommerce\Vendor\GraphQL\Type
Introspection::schemaMetaFieldDef
Method of the class: Introspection{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Introspection::schemaMetaFieldDef(): FieldDefinition;
Introspection::schemaMetaFieldDef() Introspection::schemaMetaFieldDef code 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,
]);
}