Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GraphQL over RSocket support #1

Closed
linux-china opened this issue Mar 24, 2022 · 1 comment
Closed

Add GraphQL over RSocket support #1

linux-china opened this issue Mar 24, 2022 · 1 comment

Comments

@linux-china
Copy link
Collaborator

linux-china commented Mar 24, 2022

spring-projects/spring-graphql#339

  • query and mutation
### GraphQL query over Request/Response
GRAPHQL rsocketws://localhost:8080/rsocket/graphql

query demo {
    bookById(id: "book-1") {
        id
        name
        pageCount
        author {
            firstName
            lastName
        }
    }
}
  • subscription
### GraphQL subscription over Stream
GRAPHQL rsocketws://localhost:8080/rsocket/graphql

subscription { greetings }

Schemas:

  • rsocket:// for tcp
  • rsocketws for WS
  • rsocketwss for WSS
@linux-china
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant