Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace formFragmentsUtils

Index

Functions

Functions

Const default

  • default(__namedParameters: { addFields?: string[]; fields?: string[]; formType: FormType; model: VulcanGraphqlModel }): { extraQueries: (string | (() => string))[]; mutationFragment: DocumentNode; mutationFragmentName: string; queryFragment: DocumentNode; queryFragmentName: string }
  • Generate query and mutation fragments for forms, dynamically based on the selected fields

    Parameters

    • __namedParameters: { addFields?: string[]; fields?: string[]; formType: FormType; model: VulcanGraphqlModel }
      • Optional addFields?: string[]
      • Optional fields?: string[]
      • formType: FormType
      • model: VulcanGraphqlModel

    Returns { extraQueries: (string | (() => string))[]; mutationFragment: DocumentNode; mutationFragmentName: string; queryFragment: DocumentNode; queryFragmentName: string }

    • extraQueries: (string | (() => string))[]
    • mutationFragment: DocumentNode
    • mutationFragmentName: string
    • queryFragment: DocumentNode
    • queryFragmentName: string

Generated using TypeDoc