fragment

fun fragment(name: String, type: String, init: Fragment.() -> Unit): Fragment

Create and register a fragment for use in the query

Return

Returns the created Fragment

Parameters

name

Name of the Fragment

type

Name of the type that the fragment is to be applied on.

init

Lambda to set up the Fragment to add.

See also