Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

2.0 KB
Raw Blame
import type { FederatedContentSource } from '../types'

// We fetch these docs at build time from an external repo
const graphql: FederatedContentSource = {
  section: 'graphql',
  org: 'supabase',
  repo: 'pg_graphql',
  branch: 'master',
  docsDir: 'docs',
  externalSite: 'https://supabase.github.io/pg_graphql',
  pageMap: [
    {
      meta: {
        title: 'GraphQL',
        subtitle: 'Autogenerated GraphQL APIs with Postgres.',
      },
      remoteFile: 'supabase.md',
    },
    {
      slug: 'api',
      meta: {
        title: 'GraphQL API',
        subtitle: 'Understanding the core concepts of the GraphQL API.',
      },
      remoteFile: 'api.md',
    },
    {
      slug: 'views',
      meta: {
        title: 'Views',
        subtitle: 'Using Postgres Views with GraphQL.',
      },
      remoteFile: 'views.md',
    },
    {
      slug: 'functions',
      meta: {
        title: 'Functions',
        subtitle: 'Using Postgres Functions with GraphQL.',
      },
      remoteFile: 'functions.md',
    },
    {
      slug: 'computed-fields',
      meta: {
        title: 'Computed Fields',
        subtitle: 'Using Postgres Computed Fields with GraphQL.',
      },
      remoteFile: 'computed_fields.md',
    },
    {
      slug: 'configuration',
      meta: {
        title: 'Configuration & Customization',
        subtitle:
          'Extra configuration options can be set on SQL entities using comment directives.',
      },
      remoteFile: 'configuration.md',
    },
    {
      slug: 'security',
      meta: {
        title: 'Security',
        subtitle: 'Securing your GraphQL API.',
      },
      remoteFile: 'security.md',
    },
    {
      slug: 'with-apollo',
      meta: {
        title: 'With Apollo',
        subtitle: 'Using pg_grapqhl with Apollo.',
      },
      remoteFile: 'usage_with_apollo.md',
    },
    {
      slug: 'with-relay',
      meta: {
        title: 'With Relay',
        subtitle: 'Using pg_grapqhl with Relay.',
      },
      remoteFile: 'usage_with_relay.md',
    },
  ],
}

export default graphql