GraphqlServerOps
Attributes
- Graph
-
- Supertypes
-
class AnyValtrait Matchableclass Any
Members list
Value members
Concrete methods
Creates a zio-http handler for the GraphQL API
Creates a zio-http handler for the GraphQL API
Attributes
- See also
-
handlersConfigured for a more powerful variant that allows configuring the GraphQL request execution
Creates a zio-http handler for the GraphQL API, allowing to configure the GraphQL request execution
Creates a zio-http handler for the GraphQL API, allowing to configure the GraphQL request execution
Attributes
Serves the GraphQL API on the specified port using the default zio-http configuration. This is meant as a convenience method for getting started quickly.
Serves the GraphQL API on the specified port using the default zio-http configuration. This is meant as a convenience method for getting started quickly.
Value parameters
- apiPath
-
The route to serve the API on, e.g.,
/api/graphql
- graphiqlPath
-
Optionally define a route to serve the GraphiQL UI on, e.g.,
/graphiql
- port
-
The port to serve the API on
- uploadPath
-
Optionally define a route to serve file uploads on, e.g.,
/api/upload
- webSocketPath
-
The path where websocket requests will be set. If None, websocket-based subscriptions will be disabled.
Attributes
Creates zio-http HttpApp
from the GraphQL API
Creates zio-http HttpApp
from the GraphQL API
Value parameters
- apiPath
-
The route to serve the API on, e.g.,
/api/graphql
- graphiqlPath
-
Optionally define a route to serve the GraphiQL UI on, e.g.,
/graphiql
- uploadPath
-
Optionally define a route to serve file uploads on, e.g.,
/api/upload