garph
garph
Classes
Type Aliases
AnyArgs
Ƭ AnyArgs: Type
<any
, "Args"
>
Defined in
AnyBoolean
Ƭ AnyBoolean: Type
<boolean
, "Boolean"
>
Defined in
AnyEnum
Ƭ AnyEnum: Type
<any
, "Enum"
>
Defined in
AnyFloat
Ƭ AnyFloat: Type
<number
, "Float"
>
Defined in
AnyID
Ƭ AnyID: Type
<string
, "ID"
>
Defined in
AnyInput
Ƭ AnyInput: Type
<any
, "InputType"
>
Defined in
AnyInt
Ƭ AnyInt: Type
<number
, "Int"
>
Defined in
AnyInterface
Ƭ AnyInterface: Type
<any
, "InterfaceType"
>
Defined in
AnyList
Ƭ AnyList: Type
<any
, "List"
>
Defined in
AnyNumber
Ƭ AnyNumber: Type
<number
, any
>
Defined in
AnyObject
Ƭ AnyObject: Type
<any
, "ObjectType"
>
Defined in
AnyObjects
Ƭ AnyObjects: Object
Index signature
▪ [key: string
]: AnyObject
Defined in
AnyOmitResolver
Ƭ AnyOmitResolver: Type
<any
, "OmitResolver"
>
Defined in
AnyOptional
Ƭ AnyOptional: Type
<any
, "Optional"
>
Defined in
AnyPaginatedList
Ƭ AnyPaginatedList: Type
<any
, "PaginatedList"
>
Defined in
AnyRef
Ƭ AnyRef: Type
<any
, "Ref"
>
Defined in
AnyScalar
Ƭ AnyScalar: Type
<any
, "Scalar"
>
Defined in
AnyString
Ƭ AnyString: Type
<string
, "String"
>
Defined in
AnyType
Ƭ AnyType: Type
<any
, any
>
Defined in
AnyTypes
Ƭ AnyTypes: Object
Index signature
▪ [key: string
]: AnyType
Defined in
AnyUnion
Ƭ AnyUnion: Type
<any
, "Union"
>
Defined in
Args
Ƭ Args: Object
Index signature
▪ [key: string
]: AnyType
Defined in
Infer
Ƭ Infer<T
, options
>: ExpandRecursively
<InferRaw
<T
, options
>>
Type parameters
Name | Type |
---|---|
T | T |
options | extends InferOptions = { omitResolver : never } |
Defined in
InferArg
Ƭ InferArg<T
>: ExpandRecursively
<InferArgRaw
<T
>>
Type parameters
Name |
---|
T |
Defined in
InferArgRaw
Ƭ InferArgRaw<T
>: T
extends AnyArgs
? { [K in keyof T["_args"] as T["_args"][K] extends AnyOptional ? never : K]: InferRaw<T["_args"][K]> } & { [K in keyof T["_args"] as T["_args"][K] extends AnyOptional ? K : never]?: InferRaw<T["_args"][K]> } : never
Type parameters
Name |
---|
T |
Defined in
InferArgs
Ƭ InferArgs<T
>: ExpandRecursively
<InferArgsRaw
<T
>>
Type parameters
Name | Type |
---|---|
T | extends AnyType |
Defined in
InferArgsRaw
Ƭ InferArgsRaw<T
>: T
extends AnyObject
| AnyInterface
? { [K in keyof T["_shape"]]: InferArgRaw<T["_shape"][K]> } : never
Type parameters
Name | Type |
---|---|
T | extends AnyType |
Defined in
InferRaw
Ƭ InferRaw<T
, options
>: T
extends AnyInput
| AnyObject
| AnyInterface
? { __typename?
: T
["_name"
] } & { [K in keyof T["_shape"] as T["_shape"][K] extends AnyOptional | options["omitResolver"] ? never : T["_shape"][K] extends AnyArgs ? T["_shape"][K]["_shape"] extends AnyOptional | options["omitResolver"] ? never : K : K]: InferRaw<T["_shape"][K], options> } & { [K in keyof T["_shape"] as T["_shape"][K] extends AnyOptional | options["omitResolver"] ? K : T["_shape"][K] extends AnyArgs ? T["_shape"][K]["_shape"] extends AnyOptional | options["omitResolver"] ? K : never : never]?: InferRaw<T["_shape"][K], options> } : InferShallow
<T
, options
>
Type parameters
Name | Type |
---|---|
T | T |
options | extends InferOptions = { omitResolver : never } |
Defined in
InferResolvers
Ƭ InferResolvers<T
, X
>: { [K in keyof T]: K extends "Subscription" ? { [G in keyof T[K]["_shape"]]?: Object } : { [G in keyof T[K]["_shape"]]?: Function } | { [G in keyof T[K]["_shape"]]?: Object | Object | Object } & Object }
Type parameters
Name | Type |
---|---|
T | extends AnyTypes |
X | extends InferResolverConfig |
Defined in
InferResolversStrict
Ƭ InferResolversStrict<T
, X
>: { [K in keyof T]: K extends "Subscription" ? { [G in keyof T[K]["_shape"]]: Object } : { [G in keyof T[K]["_shape"]]: Function } | { [G in keyof T[K]["_shape"]]: Object | Object | Object } & Object }
Type parameters
Name | Type |
---|---|
T | extends AnyTypes |
X | extends InferResolverConfig |
Defined in
InferShallow
Ƭ InferShallow<T
, options
>: T
extends AnyString
| AnyID
| AnyScalar
| AnyNumber
| AnyBoolean
? T
["_shape"
] : T
extends AnyEnum
? T
["_inner"
] : T
extends AnyUnion
? InferRaw
<ObjectToUnion
<T
["_inner"
]>, options
> : T
extends AnyList
? InferRaw
<T
["_shape"
], options
>[] : T
extends AnyPaginatedList
? T
["_inner"
] : T
extends AnyOptional
? InferRaw
<T
["_shape"
], options
> | null
| undefined
: T
extends AnyOmitResolver
? InferRaw
<T
["_shape"
], options
> : T
extends AnyArgs
? InferRaw
<T
["_shape"
], options
> : T
extends AnyRef
? InferRaw
<T
["_inner"
], options
> : T
Type parameters
Name | Type |
---|---|
T | T |
options | extends InferOptions = { omitResolver : never } |
Defined in
InferUnionNames
Ƭ InferUnionNames<T
>: T
extends AnyUnion
? ObjectToUnion
<T
["_inner"
]>["_name"
] : never
Type parameters
Name |
---|
T |
Defined in
TypeDefinition
Ƭ TypeDefinition<T
>: Object
Type parameters
Name |
---|
T |
Type declaration
Name | Type |
---|---|
args? | Args |
defaultValue? | any |
deprecated? | string |
description? | string |
extend? | AnyTypes [] |
interfaces? | AnyInterface [] |
isOptional? | boolean |
isRequired? | boolean |
name? | string |
scalarOptions? | ScalarOptions <any , any > |
shape? | T |
type | GarphType |
Defined in
Variables
g
• Const
g: GarphSchema
Defined in
Functions
buildSchema
▸ buildSchema(«destructured»
, config?
): GraphQLSchema
Parameters
Name | Type |
---|---|
«destructured» | Object |
› g | GarphSchema |
› resolvers? | any |
config | ConverterConfig |
Returns
GraphQLSchema
Defined in
printSchema
▸ printSchema(g
, config?
): string
Parameters
Name | Type |
---|---|
g | GarphSchema |
config | ConverterConfig |
Returns
string