Usage
Querying

Querying

Data Types

Supported by:  

Google Spreadsheets will always return data as String values

BaseQL support querying most Airtable data types, checkout our StangerThings kitchensink base (opens in a new tab):


{
strangerThings {
checkBox
rating
multiSelect
email
currency
attachments
}
}

Relationships & Nested values

Supported by:  

You can query nested values at an arbitriary deep level:


{
people(name: "ben") {
name
friends {
name
friends {
name
}
}
}
}

Sanitization

Supported by:  

BaseQL will automatically sanitize table and column names to comply with the GraphQL Specification (opens in a new tab), by:

Examples:

  • déjà vu% -> dejaVu
  • 99Ballons -> _99Ballons

Misc GraphQL

Supported by:  

BaseQL currently supports other standard GraphQL features such as Aliases (opens in a new tab), Fragments (opens in a new tab), Operation Names (opens in a new tab) and Variables (opens in a new tab):


query Veganism($country: [String] = ["🇺🇸USA"]) {
vegan: people(vegan: true, country: $country) { ...peopleFields },
nonVegan: people(vegan: false, country: $country) { ...peopleFields }
}
fragment peopleFields on people {
name
vegan
country
friends {
name
vegan
country
}
}