Package io.smallrye.graphql.schema
Class SchemaBuilder
java.lang.Object
io.smallrye.graphql.schema.SchemaBuilder
This builds schema model using Jandex.
It starts scanning all queries and mutation, building the operations for those. The operation reference some types (via Reference) that should be created and added to the schema.
The creation of these type them self create more references to types (via Reference) that should be created and added to the scheme.
It does above recursively until there is no more things to create.
- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic Schemabuild(org.jboss.jandex.IndexView index) This builds the Schema from Jandexstatic Schemabuild(org.jboss.jandex.IndexView index, TypeAutoNameStrategy autoNameStrategy) This builds the Schema from Jandex
-
Method Details
-
build
This builds the Schema from Jandex- Parameters:
index- the Jandex index- Returns:
- the Schema
-
build
This builds the Schema from Jandex- Parameters:
index- the Jandex indexautoNameStrategy- the naming strategy- Returns:
- the Schema
-