gatsby-source-airtable icon indicating copy to clipboard operation
gatsby-source-airtable copied to clipboard

getting base name in graphql

Open dbvisel opened this issue 3 years ago • 0 comments

Hi! This plugin in great, thanks.

Here's a usecase that I have: I'd like to keep my data and my code separate. So I have a config file for data that includes the tableName and baseId, which I'm feeding dynamically to my gatsby-config.js; this works fine. I can separate out different tables (and filter for what I want) with a single query in my gatsby-node.js that's something like this:

allAirtable {
	group(field: table) {
		fieldValue
		nodes {
			data
} } }

That's great. Is there a way, however to retrieve the basename through GraphQL? I can imagine an instance where I'm pulling in data from different bases that share the same table name. I'd like to be able to be able to get the base name from the table data, if that's possible.

dbvisel avatar Jun 21 '21 06:06 dbvisel