Skip to content

Commit aa24214

Browse files
author
Mateu Aguiló Bosch
committed
docs: minor improvements to the directive examples
1 parent 081c6a2 commit aa24214

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-->
66

77
<!--
8-
emdaerHash:9f568a6dfedca0e23f0251b2df63218e
8+
emdaerHash:0f3b0f0f5cc12004337875ffc6196e7d
99
-->
1010

1111
<h1 id="contentajs-graphql-img-align-right-src-logo-svg-alt-contenta-logo-title-contenta-logo-width-100-">ContentaJS GraphQL <img align="right" src="./logo.svg" alt="Contenta logo" title="Contenta logo" width="100"></h1>
@@ -70,6 +70,7 @@ project.</p>
7070
This includes all the nested relationships at all levels. This leaves everything ready for the user to start selecting
7171
fields for the response.</p>
7272
<h3 id="examples">Examples</h3>
73+
<p>Imagine you have these top level fields in your GraphQL query.</p>
7374

7475
```graphql
7576
type Query {
@@ -86,7 +87,8 @@ type Query {
8687
}
8788
```
8889
<p>Note how you can specify a templated URL with variables. The replacement value for these variables will be specified in
89-
the query. For instance see how the <code>{authorName}</code> value is provided in the GraphQL query below:</p>
90+
the query. For instance see how the <code>{authorName}</code> value is provided when the front-end is querying the GraphQL server
91+
like:</p>
9092
<pre><code>
9193
curl -X GET \
9294
'http://localhost:3000/graphql?query={recipesByAuthor(authorName:"Umami"){title,id,random,author{name}}}'

0 commit comments

Comments
 (0)