Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting base name in graphql #331

Open
dbvisel opened this issue Jun 21, 2021 · 0 comments
Open

getting base name in graphql #331

dbvisel opened this issue Jun 21, 2021 · 0 comments

Comments

@dbvisel
Copy link

dbvisel commented Jun 21, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant