Comments (5)
π Interesting use case you have here. Are you using the Airtable Linked field functionality for this as well? I would think the same process applies as long as it is a Linked field. Do we just need to make it clearer in the docs? Or does that not actually work?
from gatsby-source-airtable.
Hello, sorry I completely missed your reply to this issue.
Yes I am using the Airtable Linked filed functionality for this specific column. I might have screwed something up with my setup but I'm thinking it doesn't actually work. The response I get just includes ID references which I assume point to other records, they're just not resolved:
{
"data": {
"allAirtable": {
"edges": [
{
"node": {
"data": {
"Name": "Add",
"Related": [
"recxDviiXO3ap1NgT",
"recxdpoQM86gk2jDG"
]
}
}
},
{
"node": {
"data": {
"Name": "Delete",
"Related": [
"recxdpoQM86gk2jDG"
]
}
}
},
{
"node": {
"data": {
"Name": "Go to [location]",
"Related": [
"rec2Yjnc4c4WA2EAi"
]
}
}
},
{
"node": {
"data": {
"Name": "Link, connect",
"Related": [
"recq4OUYhZCYgQcE2"
]
}
}
},
{
"node": {
"data": {
"Name": "Play",
"Related": [
"recptyGGLgljFiPvQ"
]
}
}
},
{
"node": {
"data": {
"Name": "Shuffle play",
"Related": [
"rec2G9QEinH4fF2Xw"
]
}
}
},
{
"node": {
"data": {
"Name": "Sign up",
"Related": [
"recXDOt1tvqGo0Tmf"
]
}
}
}
]
}
}
}
Honestly this could be my mistake. Would you still expect me to have specific configuration in place for this or would you expect it to resolve itself considering its within the same table?
from gatsby-source-airtable.
I would have expected tableLinks: ['Related']
to be enough to connect them. Airtable stores related items as IDs so we would need to connect them in this manner (so option 1, not option 2).
from gatsby-source-airtable.
When adding the code you suggested the build fails:
success source and transform nodes β 3.538 s
error Cannot read property 'internal' of undefined
TypeError: Cannot read property 'internal' of undefined
- infer-graphql-type.js:225 _.uniqBy.v
[design]/[gatsby]/dist/schema/infer-graphql-type.js:225:44
- lodash.js:4282 baseUniq
[design]/[lodash]/lodash.js:4282:35
- lodash.js:8420 Function.uniqBy
[design]/[lodash]/lodash.js:8420:40
- infer-graphql-type.js:225 inferFromFieldName
[design]/[gatsby]/dist/schema/infer-graphql-type.js:225:15
- infer-graphql-type.js:359 _.each
[design]/[gatsby]/dist/schema/infer-graphql-type.js:359:23
- lodash.js:4911
[design]/[lodash]/lodash.js:4911:15
- lodash.js:2996 baseForOwn
[design]/[lodash]/lodash.js:2996:24
- lodash.js:4880
[design]/[lodash]/lodash.js:4880:18
- lodash.js:9344 Function.forEach
[design]/[lodash]/lodash.js:9344:14
- infer-graphql-type.js:338 _inferObjectStructureFromNodes
[design]/[gatsby]/dist/schema/infer-graphql-type.js:338:5
- infer-graphql-type.js:136 inferGraphQLType
[design]/[gatsby]/dist/schema/infer-graphql-type.js:136:21
- infer-graphql-type.js:372 _.each
[design]/[gatsby]/dist/schema/infer-graphql-type.js:372:23
- lodash.js:4911
[design]/[lodash]/lodash.js:4911:15
- lodash.js:2996 baseForOwn
[design]/[lodash]/lodash.js:2996:24
- lodash.js:4880
[design]/[lodash]/lodash.js:4880:18
- lodash.js:9344 Function.forEach
[design]/[lodash]/lodash.js:9344:14
error UNHANDLED REJECTION
TypeError: Cannot read property 'internal' of undefined
- infer-graphql-type.js:225 _.uniqBy.v
[design]/[gatsby]/dist/schema/infer-graphql-type.js:225:44
- lodash.js:4282 baseUniq
[design]/[lodash]/lodash.js:4282:35
- lodash.js:8420 Function.uniqBy
[design]/[lodash]/lodash.js:8420:40
- infer-graphql-type.js:225 inferFromFieldName
[design]/[gatsby]/dist/schema/infer-graphql-type.js:225:15
- infer-graphql-type.js:359 _.each
[design]/[gatsby]/dist/schema/infer-graphql-type.js:359:23
- lodash.js:4911
[design]/[lodash]/lodash.js:4911:15
- lodash.js:2996 baseForOwn
[design]/[lodash]/lodash.js:2996:24
- lodash.js:4880
[design]/[lodash]/lodash.js:4880:18
- lodash.js:9344 Function.forEach
[design]/[lodash]/lodash.js:9344:14
- infer-graphql-type.js:338 _inferObjectStructureFromNodes
[design]/[gatsby]/dist/schema/infer-graphql-type.js:338:5
- infer-graphql-type.js:136 inferGraphQLType
[design]/[gatsby]/dist/schema/infer-graphql-type.js:136:21
- infer-graphql-type.js:372 _.each
[design]/[gatsby]/dist/schema/infer-graphql-type.js:372:23
- lodash.js:4911
[design]/[lodash]/lodash.js:4911:15
- lodash.js:2996 baseForOwn
[design]/[lodash]/lodash.js:2996:24
- lodash.js:4880
[design]/[lodash]/lodash.js:4880:18
- lodash.js:9344 Function.forEach
[design]/[lodash]/lodash.js:9344:14
error Command failed with exit code 1.
I will try and spend some time debugging this to see if I can work out why its not making the connection and failing the build here.
from gatsby-source-airtable.
This issue has been automatically marked as stale because it has not had any recent activity for 30 days. It will be closed if no further activity occurs within 7 days. Remove stale label, comment, and/or apply "ongoing issue" label to prevent this from being closed. Thank you for your contributions.
from gatsby-source-airtable.
Related Issues (20)
- Gatsby v3 DeprecationWarning HOT 4
- Combining fileNode and text/markdown mappings HOT 3
- faster build when sourcing a lot of data HOT 2
- getting base name in graphql
- Field type mismatch in Airtable means field doesn't show up at all in Gatsby HOT 1
- Query on Collaborator type does not recognise the profilePicUrl
- is it possible to filter by a field in a Linked Table? HOT 1
- Dependency Dashboard
- Slow build times HOT 1
- Mp3 files get converted to Mpga HOT 3
- Unused variable `nodeType`
- Can this plugin be used to link lookup fields instead of linked records?
- How do add default tableLinks?
- update for Gatsby V4
- base name issue in Airtable?
- Upcoming updates to Airtable Attachment URLs that are fetched via API HOT 8
- error Cannot read properties of undefined (reading 'id')
- Early heads up: switching away from user API keys HOT 1
- Accelerated need to limit large url requests to βlist recordsβ, with alternative POST version HOT 5
- Build take alot of time.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-source-airtable.