Skip to content

Commit

Permalink
Move comments back out of query snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreae committed Aug 31, 2023
1 parent 7b6bdcb commit 6acd132
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ We're excited to hear about your ideas! Join our [official chat](https://wald.li

### GraphQL query API

As an application developer the interface to `aquadoggo` you will use the most is the GraphQL query API. For whichever schema your node supports a custom query api is generated, you use this to fetch data into your app. Results from a collection query can be paginated, filtered. For example:
As an application developer the interface to `aquadoggo` you will use the most is the GraphQL query API. For whichever schema your node supports a custom query api is generated, you use this to fetch data into your app. Results from a collection query can be paginated, filtered.

Fetch one "mushroom" by it's id, returning values for only the selected fields:
```graphql
<!-- Fetch one "mushroom" by it's id, returning values for only the selected fields. -->
{
mushroom: mushroom_0020c3accb0b0c8822ecc0309190e23de5f7f6c82f660ce08023a1d74e055a3d7c4d(
id: "0020aaabb3edecb2e8b491b0c0cb6d7d175e4db0e9da6003b93de354feb9c52891d0"
Expand Down Expand Up @@ -189,9 +189,8 @@ As an application developer the interface to `aquadoggo` you will use the most i
```
</details>


A collection query for "events" which includes ordering and filtering as well as selecting some meta fields. Here only events between the specified dates and with a title containing the string 'funtastic' will be returned, they will be arranged in ascending chronological order:
```graphql
<!-- A collection query for "events" which includes ordering and filtering as well as selecting some meta fields. Here only events between the specified dates and with a title containing the string 'funtastic' will be returned, they will be arranged in ascending chronological order. -->
{
events: all_events_0020aaabb3edecb2e8b491b0c0cb6d7d175e4db0e9da6003b93de354feb9c52891d0(
first: 20
Expand Down

0 comments on commit 6acd132

Please sign in to comment.