You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-8Lines changed: 19 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,16 @@ To work with [GraphQL](https://graphql.org/) features, i.e. **Type Definitions,
7
7
8
8
This Example works with [AWS HTTP API](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop.html) events.
9
9
10
-
[//]: # (For faster response with the APIs [Redis](https://redis.io/)*caching* is used). For *session tracking*[JSON Web Token (JWT)](https://jwt.io/) is used.
10
+
<!---
11
+
For faster response with the APIs [Redis](https://redis.io/) *caching* is used.
12
+
For *session tracking* [JSON Web Token (JWT)](https://jwt.io/) is used.
13
+
-->
11
14
12
15
All *logs* for the function is kept in [AWS Cloudwatch](https://aws.amazon.com/cloudwatch/) i.e *persistent*.
13
16
14
17
To use the code in this example you **must** have an valid [AWS account](https://aws.amazon.com/account/) and necessary [AWS IAM](https://aws.amazon.com/iam/) roles and programmatic access to an user. You **must** have a [MongoDB Atlas](https://www.mongodb.com/docs/atlas/) account as well as an [AWS EC2](https://aws.amazon.com/ec2/) instance should be installed with [Redis](https://redis.io/).
15
18
16
-
[User Sticker App](https://github.com/anijitsahu/react-app-simple-user-sticker-app) is related to this application.
19
+
17
20
18
21
## Features
19
22
1.[AWS Lambda](https://aws.amazon.com/lambda/) function using [NodeJS](https://nodejs.org/en/docs/)
@@ -32,15 +35,21 @@ To use the code in this example you **must** have an valid [AWS account](https:/
32
35
</ol>
33
36
34
37
38
+
<!---
35
39
6. For **session tracking** [JWT](https://jwt.io/) is used.
36
-
7.[AWS HTTP API](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop.html) are using [AWS API GateWay](https://aws.amazon.com/api-gateway/)
40
+
-->
41
+
6.[AWS HTTP API](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop.html) are using [AWS API GateWay](https://aws.amazon.com/api-gateway/)
37
42
38
-
<olstart="8">
43
+
<olstart="7">
39
44
<li> All data is saved in <ahref="https://www.mongodb.com/docs/atlas/">MongoDB Atlas</a> i.e. <i>persistent</i>
40
-
<li> <strong>Caching</strong> is used for faster response in the APIs. <ahref="https://redis.io/">Redis</a> is used for that purpose</li>
45
+
<!--- <li> <strong>Caching</strong> is used for faster response in the APIs. <a href="https://redis.io/">Redis</a> is used for that purpose</li> -->
41
46
<li> This APIs can also be consumed by any <b>Frontend Application</b>.</li>
47
+
<li> To use <ahref="https://graphql.org/">GraphQL</a> features <ahref="https://www.apollographql.com/docs/apollo-server/">Apollo Server</a> is used
48
+
<li> For the <i>Schema</i> generation <b>Type Definitions</b> are added. <b>Queries</b> are used for the <i>Reading</i> operations while <b>Mutations</b> are added for <i>Mutable</i> operations.
42
49
</ol>
43
50
51
+
52
+
44
53
11.[NPM](https://www.npmjs.com/) dependencies are used for various purposes.
45
54
12.**Custom Headers** are added with the response for *obvious security* reasons.
46
55
@@ -71,21 +80,23 @@ $ serverless deploy
71
80
72
81
After successful deployment, you can invoke the deployed **functions / resolvers**.
73
82
74
-
However, to call using `httpApi/ GraphQL API` you can use any GraphQl Client like [Altair GraphQL Client](https://chrome.google.com/webstore/detail/altair-graphql-client/flnheeellpciglgpaodhkhmapeljopja?hl=en) with the `url` and *HTTP Verbs* as shown in Terminal after using `serverless deploy`.
83
+
However, to call using [GraphQL](https://graphql.org/)API you can use any *supported* Client like [Altair GraphQL Client](https://chrome.google.com/webstore/detail/altair-graphql-client/flnheeellpciglgpaodhkhmapeljopja?hl=en) with the `url` and *HTTP Verbs* as shown in Terminal after using `serverless deploy`.
75
84
76
85
## API Listing
77
86
78
-
It should call necessary GraphQL APIs. Some of the API listing is given below
87
+
API listing is given below, -
79
88
80
89
**GET** /url-of-the-deployed-lambda/graphql
81
90
91
+
Following *Queries* use the same URL mentioned above
0 commit comments