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: CONTRIBUTING.md
+9
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ If you are new to contributing to open source, please read the Open Source Guide
27
27
-[Pre-Commit hook](#pre-commit-hook)
28
28
-[Post-Merge hook](#post-merge-hook)
29
29
-[GraphQL Voyager](#graphql-voyager)
30
+
-[GraphQL Markdown](#graphql-markdown)
30
31
-[Running Queries with talawa-api](#running-queries-with-talawa-api)
31
32
-[Internships](#internships)
32
33
-[Community](#community)
@@ -273,6 +274,14 @@ Go to `http://localhost:4000/voyager` after running the development server to ex
273
274
274
275

275
276
277
+
### GraphQL Markdown
278
+
279
+
We use the [GraphQL Markdown](https://github.com/exogen/graphql-markdown) project to generate the documentation to describe the schema. To generate the same manually, you first need to start the development server locally with `npm run dev`, and then run the script `npm run generate:graphql-markdown`.
280
+
281
+
You can then view the [generated documentation here](./docs/Schema.md).
282
+
283
+
While we use a GitHub workflow to update ths schema documentation every time a PR is merged into the repository, it is highly advisable that if you making changes to the schema, then you should also update the schema documentation by the process described above.
284
+
276
285
### Running Queries with talawa-api
277
286
278
287
- Talawa API currently implement `GraphQL Playground` as mediator interface to run and test queries directly from the api. [Learn more](https://www.apollographql.com/docs/apollo-server/v2/testing/graphql-playground/)
This directory contain the all the relevant documentation about the API for the developers.
4
+
5
+
Currently it has only one:
6
+
7
+
-[Schema.md](./Schema.md): Contains the documentation about the GraphQL schema in Markdown format. Auto-generated on push to `develop` branch with the help of `graphql-markdown` plugin.
0 commit comments