Charles

Results 33 issues of Charles

Currently in deepkit, the `Query` object is more like a query builder. While in the most popular ORM in Python, [Django ORM](https://docs.djangoproject.com/en/4.0/topics/db/queries/#retrieving-objects), the `QuerySet` objects can be directly considered as...

Currently embedded data fields cannot be nullable, so we have to write `if (entity.embedded.field1 && entity.embedded.field2) {}` instead of `if (entity.embedded) {}`. This example will throw a database validation error:...

It happens only when: - database is provided using a class extending `Database` as its token (`Database` as token is not tested because the bug) - some entities are inheriting...

### Summary of changes Exclude function properties from `FieldName` type. ### Relinquishment of Rights Please mark following checkbox to confirm that you relinquish all rights of your changes: - [x]...

## Reproduce ```ts import { App } from '@deepkit/app'; import { Element } from 'cheerio'; class Service { parse(ele: Element): void {} } new App({ providers: [Service], }).run(); ``` Here...

I need to change the response message and code dynamically to tell the front-end why it happened. The message and the code can be defined by defining the `message` and...

According to the REST specification, this is the standard method for partial updates.

#321 didn't manage to fix this bug completely. This is the failing version of [the current unit test](https://github.com/deepkit/deepkit-framework/blob/c1d6c415199804d966ce17ceb235a050de011da3/packages/http/tests/router.spec.ts#L69-L92) ```ts test('explicitly annotated response objects', async () => { class Controller {...

```ts test('self-reference serialization', async () => { class MyEntity { id: number & PrimaryKey & AutoIncrement = 0; ref?: MyEntity & Reference; //

This is for a API pattern which keeps the consistency of fields, where every fields should be returned in the response no matter whether there is a value. Currently the...