Functions
Const buildCreateQuery
- buildCreateQuery(__namedParameters: { fragment?: Fragment; fragmentName?: string; model: VulcanGraphqlModel }): DocumentNode
-
Parameters
-
__namedParameters: { fragment?: Fragment; fragmentName?: string; model: VulcanGraphqlModel }
-
Optional fragment?: Fragment
-
Optional fragmentName?: string
-
model: VulcanGraphqlModel
Returns DocumentNode
Const buildSingleQuery
- buildSingleQuery(__namedParameters: { extraQueries?: string; fragment?: Fragment; fragmentName?: string; model: VulcanGraphqlModel }): DocumentNode
-
Parameters
-
__namedParameters: { extraQueries?: string; fragment?: Fragment; fragmentName?: string; model: VulcanGraphqlModel }
-
Optional extraQueries?: string
-
Optional fragment?: Fragment
-
Optional fragmentName?: string
-
model: VulcanGraphqlModel
Returns DocumentNode
Const buildUpdateQuery
- buildUpdateQuery(__namedParameters: { fragment?: Fragment; fragmentName?: string; model: VulcanGraphqlModel }): DocumentNode
-
Parameters
-
__namedParameters: { fragment?: Fragment; fragmentName?: string; model: VulcanGraphqlModel }
-
Optional fragment?: Fragment
-
Optional fragmentName?: string
-
model: VulcanGraphqlModel
Returns DocumentNode
Const useCreate
- useCreate<TModel>(options: UseCreateOptions<any, CreateVariables<any>>): UseCreateResult<TModel, any>
-
Type parameters
Parameters
Returns UseCreateResult<TModel, any>
Const useDelete
- useDelete<TModel>(options: UseDeleteOptions): UseDeleteResult<TModel, any>
-
Type parameters
Parameters
-
options: UseDeleteOptions
Returns UseDeleteResult<TModel, any>
Const useMulti
- useMulti<TModel, TData>(options: UseMultiOptions<TModel, TData, MultiVariables<any>>, props?: {}): MultiQueryResult<TModel, TData>
-
Type parameters
Parameters
-
options: UseMultiOptions<TModel, TData, MultiVariables<any>>
-
props: {} = {}
Returns MultiQueryResult<TModel, TData>
Const useSingle
- useSingle<TModel, TData>(options: UseSingleOptions<TModel, any, any>, props?: {}): SingleResult<TModel, any>
-
Type parameters
Parameters
Returns SingleResult<TModel, any>
Const useUpdate
- useUpdate<TModel>(options: UseUpdateOptions<any>): UseUpdateResult<TModel>
-
Type parameters
Parameters
-
options: UseUpdateOptions<any>
Returns UseUpdateResult<TModel>
Const useUpsert
- useUpsert<TModel>(options: UseUpsertOptions<any>): UseUpsertResult<TModel, any>
-
Type parameters
Parameters
-
options: UseUpsertOptions<any>
Returns UseUpsertResult<TModel, any>
Prefer passing a fragment using gql tag, name will be computed automatically