Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/mocksrctype-aliasesTypePolicy

Type Alias: TypePolicy

TypePolicy = object

Defined in: packages/mock/src/types.ts:28

Properties

keyFieldName?

optional keyFieldName?: string | false

Defined in: packages/mock/src/types.ts:36

The name of the field that should be used as store key.

If false, no field will be used and id or _id will be used, otherwise we’ll generate a random string as key.