Skip to content

Commit 6e626e2

Browse files
authored
Update docs to remove EnumType (#719)
Docs are out of date for deprecated, `EnumType` - now just `Type`.
1 parent f512f1c commit 6e626e2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

website/versioned_docs/version-7.0.0/type-mapping.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ query users($status: StatusEnum!) {}
559559
```
560560

561561
By default, the name of the GraphQL enum type will be the name of the class. If you have a naming conflict (two classes
562-
that live in different namespaces with the same class name), you can solve it using the `@EnumType` annotation:
562+
that live in different namespaces with the same class name), you can solve it using the `name` argument of the `Type` attribute:
563563

564564
<Tabs
565565
defaultValue="php8"
@@ -570,9 +570,9 @@ that live in different namespaces with the same class name), you can solve it us
570570
<TabItem value="php8">
571571

572572
```php
573-
use TheCodingMachine\GraphQLite\Annotations\EnumType;
573+
use TheCodingMachine\GraphQLite\Annotations\Type;
574574

575-
#[EnumType(name: "UserStatus")]
575+
#[Type(name: "UserStatus")]
576576
class StatusEnum extends Enum
577577
{
578578
// ...
@@ -583,10 +583,10 @@ class StatusEnum extends Enum
583583
<TabItem value="php7">
584584

585585
```php
586-
use TheCodingMachine\GraphQLite\Annotations\EnumType;
586+
use TheCodingMachine\GraphQLite\Annotations\Type;
587587

588588
/**
589-
* @EnumType(name="UserStatus")
589+
* @Type(name="UserStatus")
590590
*/
591591
class StatusEnum extends Enum
592592
{

0 commit comments

Comments
 (0)