Deprecated
in package
Marks a field or enum value as deprecated in the GraphQL schema.
Deprecated elements remain functional but are flagged with a deprecation reason in introspection, signaling to API consumers that they should migrate to an alternative.
Table of Contents
- __construct() : mixed
- Constructor.
Methods
__construct()
Constructor.
public
__construct(string $reason) : mixed
Parameters
- $reason : string
-
A human-readable explanation of why the element is deprecated and what to use instead.
