Git Product home page Git Product logo

Comments (6)

paulevans avatar paulevans commented on September 24, 2024 1

For what it's worth I found name collisions between Field names and Table names. I renamed my tables to XyzTable - e.g. Product to ProductTable ... and it generated without those collisions.

from gatsby-source-airtable.

jbolda avatar jbolda commented on September 24, 2024 1

I am also suspecting that the issue is collisions between the types. It isn't clear what the exact collision is with just your config, but I imagine there are overlapping column names compared across tables.

We actually released a new version that let's you configure the type names for both the parent nodes and their children nodes (e.g. those created from the mapping property). I imagine configuring the types may resolve your issue, but you will need to adjust your queries to match.
https://github.com/jbolda/gatsby-source-airtable/releases/tag/2.1.0

from gatsby-source-airtable.

jbolda avatar jbolda commented on September 24, 2024

Would you be able to share your gatsby-config.js?

from gatsby-source-airtable.

havietduc91 avatar havietduc91 commented on September 24, 2024

Hi @jbolda ,
here you are

{
      resolve: `gatsby-source-airtable`,
      options: {
        apiKey: '*****',
        tables: [
          {
            baseId: `*******`,
            tableName: `Organization`,
            queryName: `Organization`, // optional
            mapping: {
              Logo: `fileNode`
            }, // optional, e.g. "text/markdown", "fileNode"
            tableLinks: [
              `Project`,
              `Roles`,
            ],
          },
          {
            baseId: `*******`,
            tableName: `Concept`,
            queryName: `Concept`, // optional
            tableLinks: [
              `Project`,
            ] // optional, for deep linking to records across tables.
          },
          {
            baseId: `*******`,
            tableName: `Person`,
            queryName: `Person`, // optional
          },
          {
            baseId: `*******`,
            tableName: `Project`,
            queryName: `Project`, // optional
            tableLinks: [
              `Concept`,
              `Organization`,
              `Results`,
            ] // optional, for deep linking to records across tables.
          },
          {
            baseId: `*******`,
            tableName: `Publication`,
            queryName: `Publication`, // optional
          },
        ]
      }

from gatsby-source-airtable.

havietduc91 avatar havietduc91 commented on September 24, 2024

Thank you all for your suggestion, let me try and I will inform you If it has done, many thanks

from gatsby-source-airtable.

github-actions avatar github-actions commented on September 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.