Namespace formFragmentsUtils
Functions
Const default
- default(__namedParameters: { addFields?: string[]; fields?: string[]; formType: FormType; model: VulcanGraphqlModel }): { extraQueries: (string | (() => string))[]; mutationFragment: DocumentNode; mutationFragmentName: string; queryFragment: DocumentNode; queryFragmentName: string }
-
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
Generate query and mutation fragments for forms, dynamically based on the selected fields