Skip to content

Releases: themost-framework/query

2.9.5

10 Feb 12:37
70d75bf
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.9.4...2.9.5

2.9.4

09 Feb 09:05
c36ff92
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.9.2...2.9.4

2.9.2

08 Feb 12:54
12b52b8
Compare
Choose a tag to compare

What's Changed

@themost/query closures support object destructuring while selecting attributes e.g.

new QueryExpression().select(({id, familyName, givenName}) => {
            id,
            familyName,
            givenName
        })
        .from(People).where( x => {
            return x.id === 355;
        });

or while querying data:

new QueryExpression()
            .select(({ id, familyName: lastName, givenName: firstName, email, dateCreated }) => {
                id, lastName, firstName, email, dateCreated
            })
            .from(People)
            .where(({ email }) => {
                return email === 'cameron.ball@example.com';
            })
            .take(1);

which produces the folllowing equivalent SQL:

SELECT "PersonData"."id" AS "id", "PersonData"."familyName" AS "lastName", "PersonData"."givenName" AS "firstName", "PersonData"."email" AS "email", "PersonData"."dateCreated" AS "dateCreated" FROM "PersonData" WHERE "PersonData"."email" = 'cameron.ball@example.com' LIMIT 1

Full Changelog: 2.9.1...2.9.2

2.9.1

03 Jan 07:54
d7876b1
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.9.0...2.9.1

2.9.0

03 Jan 07:07
60a62ed
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.8.2...2.9.0

2.8.2

02 Jan 21:30
d65f1bd
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.8.1...2.8.2

2.8.1

02 Jan 18:26
5be76b8
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.8.0...2.8.1

2.8.0

12 Dec 09:23
03365b1
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.7.11...2.8.0

2.7.11

11 Dec 15:04
dd5c3d2
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.7.10...2.7.11

2.7.10

11 Dec 07:30
d5d92f7
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.7.9...2.7.10