Skip to content

Commit

Permalink
Use event constant
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustMiller committed Jan 8, 2024
1 parent 2d465bc commit 7ec238a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/4.x/extend/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ Event::on(

### Modifying Type Fields

Craft’s <craft4:craft\gql\TypeManager> includes a `defineGqlTypeFieldsEvent` event you can use to add, remove or modify fields on any GraphQL type.
Attach a handler to <craft4:craft\gql\TypeManager::EVENT_DEFINE_GQL_TYPE_FIELDS> to add, remove or modify fields on any GraphQL type.

Below we’re removing IDs throughout the schema in favor of UIDs, and adding an `authorEmail` field to the entry interface:

Expand Down

0 comments on commit 7ec238a

Please sign in to comment.