Skip to content

Commit

Permalink
Merge pull request #17789 from phillip-kruger/graphql-doc-update
Browse files Browse the repository at this point in the history
Added a note on events in SmallRye GraphQL Document
  • Loading branch information
geoand authored Jun 9, 2021
2 parents 524f250 + 2e582a7 commit 7249369
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/main/asciidoc/smallrye-graphql.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,8 @@ public GraphQLSchema.Builder addMyOwnEnum(@Observes GraphQLSchema.Builder builde

By using the `@Observer` you can add anything to the Schema builder.

NOTE: For the Observer to work, you need to enable events. In `application.properties`, add the following: `quarkus.smallrye-graphql.events.enabled=true`.

== Map to Scalar

Another SmallRye specific experimental feature, allows you to map an existing scalar (that is mapped by the implementation to a certain Java type) to another type,
Expand Down

0 comments on commit 7249369

Please sign in to comment.