fluent-kit icon indicating copy to clipboard operation
fluent-kit copied to clipboard

Improve DatabaseQuery.input custom support

Open valeriomazzeo opened this issue 4 years ago • 0 comments

Because of some assumptions made in Querybuilder+Set and Querybuilder it's not possible to assign anything other than DatabaseQuery.Value.dictionary as a top level Input. In particular it prevents the use of .custom.

An example of how to circumvent the current limitation is visible here. Unfortunately, this rely on the specific implementation details from Fluent, and I suspect it may break at any time.

Expected behaviour would be to be able to extend Querybuilder.set or more in general, to be able to freely manipulate the Input array without worrying that Fluent will either crash or replace its content completely.

valeriomazzeo avatar May 25 '20 22:05 valeriomazzeo