From 34bf4ede29f0722ae355231050175bebe9f624a9 Mon Sep 17 00:00:00 2001 From: Jacob Thomason Date: Fri, 13 Dec 2024 20:39:55 -0500 Subject: [PATCH] Update docs to remove EnumType Docs are out of date for deprecated, `EnumType` - now just `Type`. --- website/versioned_docs/version-7.0.0/type-mapping.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/versioned_docs/version-7.0.0/type-mapping.mdx b/website/versioned_docs/version-7.0.0/type-mapping.mdx index 2051dd9559..53b7f43afb 100644 --- a/website/versioned_docs/version-7.0.0/type-mapping.mdx +++ b/website/versioned_docs/version-7.0.0/type-mapping.mdx @@ -559,7 +559,7 @@ query users($status: StatusEnum!) {} ``` By default, the name of the GraphQL enum type will be the name of the class. If you have a naming conflict (two classes -that live in different namespaces with the same class name), you can solve it using the `@EnumType` annotation: +that live in different namespaces with the same class name), you can solve it using the `name` argument of the `Type` attribute: ```php -use TheCodingMachine\GraphQLite\Annotations\EnumType; +use TheCodingMachine\GraphQLite\Annotations\Type; -#[EnumType(name: "UserStatus")] +#[Type(name: "UserStatus")] class StatusEnum extends Enum { // ... @@ -583,10 +583,10 @@ class StatusEnum extends Enum ```php -use TheCodingMachine\GraphQLite\Annotations\EnumType; +use TheCodingMachine\GraphQLite\Annotations\Type; /** - * @EnumType(name="UserStatus") + * @Type(name="UserStatus") */ class StatusEnum extends Enum {