CollectionConfig
Defined in: packages/core/src/collections/types.ts:288
Resolved collection configuration after defaults are applied by defineCollection().
- CollectionConfigInput for the user-facing input type
- defineCollection for the config function
Type Parameters
Section titled “Type Parameters”TFieldMeta
Section titled “TFieldMeta”TFieldMeta extends object = { }
TCollectionMeta
Section titled “TCollectionMeta”TCollectionMeta extends object = { }
TCollectionSlug
Section titled “TCollectionSlug”TCollectionSlug extends CollectionSlug = CollectionSlug
TFieldSlug
Section titled “TFieldSlug”TFieldSlug extends string = string
TComponent
Section titled “TComponent”TComponent extends ComponentHKT = ComponentHKT
Properties
Section titled “Properties”admin:
AdminCollectionConfig<TFieldSlug,TComponent>
Defined in: packages/core/src/collections/types.ts:296
Resolved admin panel configuration for this collection.
fields
Section titled “fields”fields:
Record<TFieldSlug,AdminField<TFieldMeta>>
Defined in: packages/core/src/collections/types.ts:307
Resolved field definitions for this collection.
indexes?
Section titled “indexes?”
optionalindexes?:object[]
Defined in: packages/core/src/collections/types.ts:311
Index definitions that create indexes on this collection in Convex.
fields
Section titled “fields”fields:
NoInfer<TFieldSlug>[]
name:
string
interfaceName
Section titled “interfaceName”interfaceName:
string
Defined in: packages/core/src/collections/types.ts:309
PascalCase identifier derived from slug, used as the TypeScript interface name in generated types (e.g. "posts" → "Posts").
labels
Section titled “labels”labels:
object
Defined in: packages/core/src/collections/types.ts:300
Display names shown in the admin panel — always present after defaults are applied.
plural
Section titled “plural”plural:
string
Plural display name (e.g. "Posts").
singular
Section titled “singular”singular:
string
Singular display name (e.g. "Post").
meta:
TCollectionMeta
Defined in: packages/core/src/collections/types.ts:315
slug:
TCollectionSlug
Defined in: packages/core/src/collections/types.ts:298
Convex table name for this collection.