FieldDsl

Creates an instance of FieldDsl.

In most situations, users shouldn't need to call this method, as an instance is often provided by operations:

users.find {
// the 'this' receiver already implements the [FieldDsl] interface.
}

However, in some cases you may want to create fields outside operations. You can do so with:

with(FieldDsl(users.context)) {
User::profile / Profile::name
}