Search code examples
javajava-websocketgraphql-java

Are websockets supported in GraphQL?


Does GraphQL-Java support websockets? It looks like it is not supported. I can't seem to find any information on this, so any help would be very greatly appreciated.


Solution

  • GraphQL runtime tells nothing about the transportation, the only thing is that String is taken as input parameter and the String is the result (part of graphql.ExecutionResult) of GraphQL execution.

    Take a look on graphql.GraphQL#execute(java.lang.String, java.lang.String, java.lang.Object, java.util.Map<java.lang.String,java.lang.Object>)