---
lang: en
title: 'API docs: repository-tests.crudfeatures.idtype'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository-tests.crudfeatures.idtype.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository-tests](./repository-tests.md) &gt; [CrudFeatures](./repository-tests.crudfeatures.md) &gt; [idType](./repository-tests.crudfeatures.idtype.md)

## CrudFeatures.idType property

What type is used for auto-generated primary keys? - SQL databases typically use auto-incremented numbers, - NoSQL databases tend to use GUID/UUID strings.

Default: `'string'`<!-- -->.

<b>Signature:</b>

```typescript
idType: 'string' | 'number';
```

