Json Path Builder
Create a Path builder using one of the manu reified methods.
From a class:
val builder = TestObject::class.with(TestObject::statuses) {
then(Status::createdAt)
}Content copied to clipboard
From a property:
val builder = TestObject::statuses.builder {
then(Status::createdAt)
}
Quick joining two properties:Content copied to clipboard
val builder = TestObject::statuses.then(Status::createdAt) { // can optionally keep going }
Classes like [OrderBy] and [Where] operators take [JsonPathBuilder] or [KProperty1] to build
the path for sql queries.Content copied to clipboard