Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GraphqlModelOptionsServer

This type is meant to be exposed server side

server-only

Hierarchy

Index

Properties

Optional callbacks

multiTypeName

multiTypeName: string

Optional mutationResolvers

mutationResolvers: null | Partial<MutationResolverDefinitions>

Custom mutation resolvers (create, update, delete). Set to "null" if you don't want Vulcan to set any resolvers. Leave undefined if you want to use default resolvers.

Optional queryResolvers

queryResolvers: null | Partial<QueryResolverDefinitions>

Custom query resolvers (single, multi). Set to "null" if you don't want Vulcan to set any resolvers. Leave undefined if you want to use default resolvers.

typeName

typeName: string

Methods

Optional createConnector

  • Create a database connector. As a default, Vulcan Next will setup a Mongoose connector but it's better to set it explicitely.

    NOTE: we can't pass the connector directly, because it usually depends on the model itself

    Parameters

    Returns Connector<any, any, any, any>

Optional makeCreateDataSource

  • Create a data source creator (/!\ it must be a closure)

    Parameters

    Returns () => undefined | DataSource<any>

      • (): undefined | DataSource<any>
      • Returns undefined | DataSource<any>

Generated using TypeDoc