meta

inline fun <T : Any> KongoService<T>.meta(name: String, options: CreateCollectionOptions = CreateCollectionOptions()): ReadOnlyProperty<Any?, KongoService.Info<T>>(source)

Automatically configures KongoService.Info for your service.

Return

A delegate for the KongoService.Info object describing your service.

Parameters

T

The type of object stored in the collection.

name

The name of the collection.

options

Options to use when creating the collection.