Skip to content

Commit

Permalink
Create change file & add usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
mabhub committed May 26, 2021
1 parent 5eb1403 commit 0880d57
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/add-rowIndex-field.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gatsby-source-airtable": patch
---

Add custom node property with fetched records order
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,25 @@ Get all records from `YOUR_TABLE_NAME` where `Field_1 === YOUR_VALUE`:
}
```

Get all records ordered according selected `tableView`:

```graphql
{
allAirtable(
sort: {
fields: rowIndex
}
) {
edges {
node {
data {
Field_1
}
}
}
}
}

## How it works

When running `gatsby develop` or `gatsby build`, this plugin will fetch all data
Expand Down

0 comments on commit 0880d57

Please sign in to comment.