parent
463e047849
commit
7c14032d45
2 changed files with 26 additions and 2 deletions
@ -1 +1,14 @@ |
||||
# Authorization |
||||
# 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…
Reference in new issue