Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GraphqlModelOptions

Typing is tricky here:

  • we want to tell the user when they tried to use a server-only field client-side, and point them to the right solution (type: never)
  • we want the sever version to define those server only fields correctly (type: whatever)
  • we want to define functions that accept any of those types (eg when they use only the shared fields)

This type is meant for internal use

This SO question is similar but all answsers break inheritance, using types instead of cleaner interfaces

see

https://stackoverflow.com/questions/41285211/overriding-interface-property-type-defined-in-typescript-d-ts-file

Hierarchy

Index

Properties

Optional defaultFragmentOptions

defaultFragmentOptions: DefaultFragmentOptions

multiTypeName

multiTypeName: string

typeName

typeName: string

Generated using TypeDoc