Skip to content

Commit

Permalink
docs: update docs about datasources and datasources entries
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelgsouza committed Jul 27, 2020
1 parent 425aa02 commit 9810117
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,25 @@ This lets you for example to query for a specific component:
}
```

### Datasource Entries
### Datasources (without the entries)

```GraphQL
allStoryblokDatasource(filter: {data_source: {eq: null}}) {
edges {
node {
id
value
name
data_source
}
}
}
```

### Datasource Entries by specific Datasource

```GraphQL
allStoryblokDataSourceEntry {
allStoryblokDatasource(filter: { data_source: { eq: "DATASOURCE_SLUG" } }) {
edges {
node {
id
Expand Down

0 comments on commit 9810117

Please sign in to comment.