Skip to content

Commit

Permalink
📝 Add GraphQL API tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ujibang committed Dec 11, 2023
1 parent 61cc85e commit f1e13cd
Show file tree
Hide file tree
Showing 5 changed files with 446 additions and 213 deletions.
2 changes: 1 addition & 1 deletion _includes/docs-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h3 id="rest-api" class="mt-2">GraphQL API</h3>
<li><a href="/docs/mongodb-graphql/tutorial">Tutorial</a></li>
<li><a href="/docs/mongodb-graphql/graphql-apps">GraphQL App Definition</a></li>
<li><a href="/docs/mongodb-graphql/optimization">Optimization</a></li>
<li><a href="/docs/mongodb-graphql/example">Example</a></li>
<li><a href="/docs/mongodb-graphql/complex-app-example">A complex GraphQL App</a></li>

<h3 id="rest-api" class="mt-2">Websocket API</h3>
<li><a href="/docs/mongodb-websocket/">Overview</a></li>
Expand Down
4 changes: 4 additions & 0 deletions _sass/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1629,4 +1629,8 @@ div.editions-matrix{
h4 {
color: rgb(12, 84, 96);
}
}

.fs-16 {
font-size: 16px !important;
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: GraphQL API
title: A Complex GraphQL App
layout: docs-adoc
menu: mongodb
---

:page-liquid:

== Before running the example
== Before running the tutorial

The following example assume:
This tutorial assume:

- RESTHeart Platform running on the localhost with the default configuration: the database *restheart* is bound to `/`, the user *admin* exists with default password *secret*, *gql-apps* is the collection, within `restheart` database, reserved to GraphQL apps definitions and the GraphQL service is reachable at `/graphql`.
- The `sample-mflix` database (see link:/docs/mongodb-rest/sample-data[Load Sample Data into MongoDB]) is stored in the MongoDB instance associated to RESTHeart.
Expand Down
Loading

0 comments on commit f1e13cd

Please sign in to comment.