From 7c14032d45b6ae295ac3a55de501413b460c0c59 Mon Sep 17 00:00:00 2001 From: syedmouaazfarrukh Date: Fri, 20 Jan 2023 11:21:23 -0800 Subject: [PATCH] Adding content to 102-graphql-over-sse --- .../102-graphql-over-sse/100-authorization.md | 15 ++++++++++++++- .../102-graphql-over-sse/index.md | 13 ++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/roadmaps/graphql/content/106-serving-over-internet/102-graphql-over-sse/100-authorization.md b/src/roadmaps/graphql/content/106-serving-over-internet/102-graphql-over-sse/100-authorization.md index 02b25f227..48efc8c52 100644 --- a/src/roadmaps/graphql/content/106-serving-over-internet/102-graphql-over-sse/100-authorization.md +++ b/src/roadmaps/graphql/content/106-serving-over-internet/102-graphql-over-sse/100-authorization.md @@ -1 +1,14 @@ -# Authorization \ No newline at end of file +# 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) \ No newline at end of file diff --git a/src/roadmaps/graphql/content/106-serving-over-internet/102-graphql-over-sse/index.md b/src/roadmaps/graphql/content/106-serving-over-internet/102-graphql-over-sse/index.md index 8ad883ce9..24249ef08 100644 --- a/src/roadmaps/graphql/content/106-serving-over-internet/102-graphql-over-sse/index.md +++ b/src/roadmaps/graphql/content/106-serving-over-internet/102-graphql-over-sse/index.md @@ -1 +1,12 @@ -# Graphql over sse \ No newline at end of file +# 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) \ No newline at end of file