graphql-ws / server
Ƭ GraphQLExecutionContextValue: object
| symbol
| number
| string
| boolean
| undefined
| null
A concrete GraphQL execution context value type.
Mainly used because TypeScript collapes unions
with any
or unknown
to any
or unknown
. So,
we use a custom type to allow definitions such as
the context
server option.
Ƭ OperationResult: Promise
<AsyncIterableIterator<ExecutionResult> | ExecutionResult> | AsyncIterableIterator
<ExecutionResult> | ExecutionResult
▸ makeServer<E>(options
): Server<E>
Makes a Protocol complient WebSocket GraphQL server. The server is actually an API which is to be used with your favourite WebSocket server library!
Read more about the Protocol in the PROTOCOL.md documentation file.
Name | Type |
---|---|
E |
E = unknown |
Name | Type |
---|---|
options |
ServerOptions<E> |
Server<E>