mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
25 lines
888 B
TypeScript
25 lines
888 B
TypeScript
import { GraphQLNonNull, GraphQLObjectType, GraphQLString } from 'graphql'
|
|
import { GraphQLInterfaceTypeSearchResult } from '../globalSearch/globalSearchSchema'
|
|
import { TroubleshootingModel } from './troubleshootingModel'
|
|
|
|
export const GraphQLObjectTypeTroubleshooting = new GraphQLObjectType({
|
|
name: 'TroubleshootingGuide',
|
|
interfaces: [GraphQLInterfaceTypeSearchResult],
|
|
isTypeOf: (value: unknown) => value instanceof TroubleshootingModel,
|
|
description: 'A document describing how to troubleshoot an issue when using Supabase',
|
|
fields: {
|
|
title: {
|
|
type: GraphQLString,
|
|
description: 'The title of the troubleshooting guide',
|
|
},
|
|
href: {
|
|
type: GraphQLString,
|
|
description: 'The URL of the troubleshooting guide',
|
|
},
|
|
content: {
|
|
type: GraphQLString,
|
|
description: 'The full content of the troubleshooting guide',
|
|
},
|
|
},
|
|
})
|