Adding content to 102-graphql-over-sse

content/graphql
syedmouaazfarrukh 2 years ago
parent 463e047849
commit 7c14032d45
  1. 13
      src/roadmaps/graphql/content/106-serving-over-internet/102-graphql-over-sse/100-authorization.md
  2. 13
      src/roadmaps/graphql/content/106-serving-over-internet/102-graphql-over-sse/index.md

@ -1 +1,14 @@
# Authorization
Authorization in GraphQL refers to the process of controlling access to specific fields, types, or operations in a GraphQL schema based on user roles or permissions. It allows you to restrict access to certain data or functionality in your application based on the user's role or permissions.
There are several ways to implement authorization in GraphQL:
- Using middleware
- Using schema directives
- Using a data source layer
To learn more, visit the following links:
- [Get Started with Authorization](https://graphql.org/learn/authorization/)
- [Authorization with GraphQL Shield](https://www.youtube.com/watch?v=DvjRCnrYFcg)

@ -1 +1,12 @@
# Graphql over sse
# GraphQL Over SSE
GraphQL over SSE (Server-Sent Events) is a way to use the Server-Sent Events (SSE) protocol to send real-time updates from the server to the client over a single HTTP connection.
SSE is a simple and efficient protocol for sending real-time updates from the server to the client over a single HTTP connection. It's supported by most modern web browsers and it's easy to implement on the server side.
To implement GraphQL over SSE, you can use a library such as graphql-sse which provides a way to send GraphQL updates over SSE. This library allows you to handle SSE connections and events, and to send and receive GraphQL updates over the SSE connection.
To learn more, visit the following links:
- [Overview of GraphQL over SSE (Server-Sent Events)](https://the-guild.dev/blog/graphql-over-sse)
- [GraphQL Subscriptions with Server Sent Events](https://www.youtube.com/watch?v=oZtTut7QsZ8)
Loading…
Cancel
Save