Grafbase makes it easy to unify existing APIs with the GraphQL and OpenAPI connectors.
Until now, connectors didn't require a unique name. The new configuration format for @grafbase/sdk
version 0.6.1
and above now requires a name
:
import { config, connector, graph } from '@grafbase/sdk'
const g = graph.Standalone()
const stripe = connector.OpenAPI('Stripe', {
schema:
'https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json',
})
export default config({
graph: g,
})
Please make sure you're running the @latest
version of the Grafbase CLI (0.33.2
) when using the new configuration format.
We're also busy updating our documentation, templates, examples and guides to use this new format. If you spot anything that doesn't look right, please let us know on Discord.