mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 01:10:15 -04:00
03dcd51700
## Before Search results ignored if they are CLI references. ## After Search results returned for CLI references.
25 lines
856 B
TypeScript
25 lines
856 B
TypeScript
import { GraphQLObjectType, GraphQLString } from 'graphql'
|
|
import { GraphQLInterfaceTypeSearchResult } from '../globalSearch/globalSearchSchema'
|
|
import { ReferenceCLICommandModel } from './referenceCLIModel'
|
|
|
|
export const GraphQLObjectTypeReferenceCLICommand = new GraphQLObjectType({
|
|
name: 'CLICommandReference',
|
|
interfaces: [GraphQLInterfaceTypeSearchResult],
|
|
isTypeOf: (value: unknown) => value instanceof ReferenceCLICommandModel,
|
|
description: 'A reference document containing a description of a Supabase CLI command',
|
|
fields: {
|
|
title: {
|
|
type: GraphQLString,
|
|
description: 'The title of the document',
|
|
},
|
|
href: {
|
|
type: GraphQLString,
|
|
description: 'The URL of the document',
|
|
},
|
|
content: {
|
|
type: GraphQLString,
|
|
description: 'The content of the reference document, as text',
|
|
},
|
|
},
|
|
})
|