All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
0.20.1 (2020-09-28)
- deps: update dependency apollo-server-express to v2.18.0 (ca28fda)
- deps: update dependency apollo-server-express to v2.18.1 (b5f9378)
- deps: update dependency apollo-server-plugin-base to v0.10.1 (735032a)
- deps: update dependency graphql-tools to v6.2.3 (642c11f)
- deps: update dependency mysql2 to v2.2.1 (5159077)
- deps: update dependency mysql2 to v2.2.2 (f9235b2)
- deps: update dependency mysql2 to v2.2.3 (a2a5afc)
- deps: update dependency mysql2 to v2.2.5 (b66e6e6)
- graphql: Fix assemblers type for module passthrough (713c41c)
0.20.0 (2020-09-17)
- deps: update dependency @docusaurus/core to v2.0.0-alpha.64 (ea0a202)
- deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.64 (3d3dd96)
- core: Update assemblers to allow transforming create/update dtos (5085d11)
- core: Update query service decorator to have correct generics (74dc618)
0.19.4 (2020-09-15)
- deps: update dependency graphql-tools to v6.2.2 (8a2253b)
- graphql: Add keyset connections (36bdbdd)
0.19.3 (2020-09-09)
- deps: update dependency @docusaurus/core to v2.0.0-alpha.63 (631e922)
- deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.63 (aa95f40)
- deps: update dependency graphql-tools to v6.2.1 (b1e0833)
- deps: update dependency rxjs to v6.6.3 (addf2e2)
- examples: Fix nest-cli.json to reference correct tsconfig (a49d063)
- graphql,hooks: Allow getting hooks from parent classes (59a0aeb)
0.19.2 (2020-09-03)
0.19.1 (2020-09-02)
- deps: update dependency graphql-tools to v6.2.0 (1183fa3)
- typeorm,#493: Fix uni-directional relation SQL (7887b8c)
0.19.0 (2020-09-01)
- deps: update dependency @docusaurus/core to v2.0.0-alpha.62 (dc773f4)
- deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.62 (ad5c2d2)
- deps: update dependency apollo-server-express to v2.17.0 (53398fe)
- deps: update dependency graphql-tools to v6.1.0 (2394310)
- deps: update dependency pg to v8.3.2 (1a03710)
- deps: update dependency pg to v8.3.3 (f471395)
- example,auth: Fix auth example (b26e1c6)
- auth: Initial Investigation (8d40636)
- core: Update QueryService to allow additional filtering (474369b)
- graphql,auth: Add authorization to resolvers and relations (9d76787)
- sequelize: Add additional filter options to QueryService (29fdfa7)
- typeorm: Add additional filter options to QueryService (64241dc)
0.18.1 (2020-08-14)
- core: Fix potential stack overflow with filter comparison (f498802)
- deps: update dependency graphql-query-complexity to v0.7.0 (d47bba1)
- deps: update dependency graphql-tools to v6.0.17 (b0d1648)
- deps: update dependency graphql-tools to v6.0.18 (9678548)
- tests: Make subTask connections tests order consistently (ab8bab2)
- core: refactor null compares and improve tests (3582ed2)
- refactored filter builder to support nested object filters (1ee8dbf)
0.18.0 (2020-08-11)
- deps: update dependency @docusaurus/core to v2.0.0-alpha.61 (c2f03b8)
- deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.61 (e052793)
- deps: update dependency graphql-tools to v6.0.16 (df3784d)
- e2e: Making tests deterministic (175cc2e)
- tests: Fix tests to be deterministic (5dd6dac)
- type: Pin dev dependencies (442db4c)
- workflow: Fix github actions matrix reference (a4d9447)
- typeorm: Switch to use unioned queries for relations (327c676)
0.17.10 (2020-08-01)
- deps: update dependency @docusaurus/core to v2.0.0-alpha.60 (8982a12)
- deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.60 (3663b9b)
- deps: update dependency rxjs to v6.6.2 (7062be9)
0.17.9 (2020-07-29)
- graphql: Allow specifying fields that are required when querying (a425ba7)
0.17.8 (2020-07-28)
- deps: update dependency @docusaurus/core to v2.0.0-alpha.59 (ffe2ae9)
- deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.59 (7a80894)
- deps: update dependency apollo-server-express to v2.16.1 (4989294)
- graphql: Allow specifying allowed comparisons on filterable fields (ced2792)
0.17.7 (2020-07-27)
0.17.6 (2020-07-24)
- graphql: Include inherited references and relations (26dd6f9)
0.17.5 (2020-07-24)
- graphql,aggregations: Exclude __typename in aggregations (3897673)
0.17.4 (2020-07-23)
- deps: update dependency graphql-tools to v6.0.15 (a45ece7)
- graphql,hooks: Add before hooks to graphql mutations (3448955)
0.17.3 (2020-07-17)
- deps: update dependency apollo-server-express to v2.16.0 (0870afe)
- graphql: Fix filters to transform to expected type #317 (0d28b0b)
0.17.2 (2020-07-17)
0.17.1 (2020-07-17)
- deps: update dependency graphql-tools to v6.0.14 (acb7e48)
- complexity: Add complexity support for relations (aa85325)
0.17.0 (2020-07-16)
- deps: update dependency graphql-tools to v6.0.13 (802bb5b)
- aggregations: Add aggregation support to sequelize (c37b7ae)
- aggregations: Add aggregations interfaces (d67e733)
- aggregations: Add aggregations to graphql (af075d2)
- aggregations,relations: Add relation aggregation graphql enpoints (56bb7e0)
- aggregations,relations,core: Add relation aggregation to core (a489588)
- aggregations,sequelize: Add relation aggregation to sequelize (93e7c1b)
- aggregations,sequelize: Fix aggregation on many-to-many relations (db6ecb2)
- aggregations,typeorm: Add relation aggregation to typeorm (2bf35a9)
- aggretations: Add aggregations support to typeorm (7233c23)
0.16.2 (2020-07-09)
- deps: update dependency pg to v8.2.2 (cd7fbb5)
- deps: update dependency pg to v8.3.0 (25c8dcb)
- imports: Remove additional /src references (9528772)
0.16.1 (2020-07-07)
0.16.0 (2020-07-05)
- deps: update dependency apollo-server-express to v2.15.1 (29f2b72)
- deps: update dependency graphql-tools to v6.0.12 (3048277)
- deps: update dependency rxjs to v6.6.0 (cc356f9)
- deps: update dependency sequelize to v5.22.2 (c04d1fc)
- deps: update dependency sequelize to v5.22.3 (ac288e3)
- sequelize: Change query to not use sub queries (80c69d6)
- core: Add type support for nest objects in filter (cd9d0b5)
- graphql: Enable filtering on ORM relations (60229b8)
- sequelize: Add support for querying for nested relations (92a51c1)
- typeorm: Add support for filtering on relations (aa8788c)
0.15.1 (2020-06-27)
- deps: update dependency graphql-tools to v6.0.11 (14416c4)
- deps: update dependency sequelize to v5.22.1 (6ff765d)
0.15.0 (2020-06-23)
- graphql,connection: Add totalCount to connections (ed1e84a)
0.14.3 (2020-06-20)
- deps: update dependency @apollo/federation to v0.16.9 (28ac98c)
- graphql,subscriptions: Expose InjectPubSub decorator (867022e)
0.14.2 (2020-06-19)
- typeorm: Allow using string based typeorm relations (55c157d)
0.14.1 (2020-06-19)
- graphql: Allow custom scalars for comparisons (57cbe38)
0.14.0 (2020-06-18)
- deps: update dependency @apollo/federation to v0.16.8 (01d05c1)
- deps: update dependency @docusaurus/core to v2.0.0-alpha.58 (1060e05)
- deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.58 (236cd18)
- deps: update dependency apollo-server-express to v2.15.0 (355d22b)
- deps: update dependency graphql-tools to v6.0.10 (005ee15)
- graphql,paging: Add NONE paging strategy (216d926)
0.13.2 (2020-06-14)
- graphl,filters: Allow for enums when filtering (60dcc30)
0.13.1 (2020-06-12)
0.13.0 (2020-06-12)
- deps: update dependency @apollo/federation to v0.16.6 (e51bb37)
- deps: update dependency apollo-server-express to v2.14.4 (ae31896)
- deps: update dependency graphql to v15.1.0 (e6362fe)
- deps: update dependency graphql-tools to v6.0.9 (4d7ccc9)
- graphql: Add limit offset paging without connections (5fc3e90)
0.12.0 (2020-06-07)
- deps: update dependency @apollo/federation to v0.16.4 (e000230)
- deps: update dependency apollo-server-express to v2.14.2 [security] (36c9649)
- deps: update dependency graphql-tools to v6.0.4 (aaa6233)
- deps: update dependency graphql-tools to v6.0.5 (fe181ae)
- deps: update dependency graphql-tools to v6.0.8 (27cb278)
- graphql: Add graphql subscriptions (5dc987f)
0.11.8 (2020-05-30)
Note: Version bump only for package nestjs-query
0.11.7 (2020-05-29)
- deps: update dependency @apollo/federation to v0.16.1 (1fd84e1)
- deps: update dependency @apollo/federation to v0.16.2 (ad047b3)
- deps: update dependency @docusaurus/core to v2.0.0-alpha.56 (811d26d)
- deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.56 (b7fd2af)
- deps: update dependency apollo-server-express to v2.14.0 (8ca9ee5)
- deps: update dependency apollo-server-express to v2.14.1 (4776e70)
- deps: update dependency graphql-tools to v6.0.3 (15429a5)
0.11.6 (2020-05-26)
- deps: update dependency graphql-tools to v6 (b1aeba1)
0.11.5 (2020-05-21)
- deps: update dependency @docusaurus/core to v2.0.0-alpha.55 (8926e12)
- deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.55 (1ed906f)
0.11.4 (2020-05-19)
Note: Version bump only for package nestjs-query
0.11.3 (2020-05-16)
- deps: update dependency pg to v8.2.1 (4603b85)
0.11.2 (2020-05-14)
- Fix lint issues (c3407c0)
- deps: update dependency @apollo/federation to v0.16.0 (5a5acd6)
- deps: update dependency apollo-server-express to v2.13.1 (49d214f)
- deps: update dependency pg to v8.1.0 (42c7d01)
- deps: update dependency pg to v8.2.0 (6e20417)
- graphql,core: Add support for custom services and assemblers (85e8658)
0.11.1 (2020-05-11)
- graphql: Add support for auto-generated federations (238f641)
0.11.0 (2020-05-09)
- deps: update dependency @apollo/federation to v0.15.0 (b534056)
- deps: update dependency apollo-server-express to v2.13.0 (7525af5)
0.10.2 (2020-05-04)
- sequelize: Update sequelize package deps to match hoisted (c7f5190)
0.10.1 (2020-05-02)
- graphql: Fix paging to properly check next/previous page (13c7bd9)
0.10.0 (2020-04-29)
- deps: update dependency @docusaurus/core to v2.0.0-alpha.54 (d6b7e6c)
- deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.54 (fae7683)
0.9.0 (2020-04-26)
- docs: remove unused imports in example page (a67ac24)
- typeorm: Add support for soft deletes (2ab42fa)
0.8.9 (2020-04-24)
Note: Version bump only for package nestjs-query
0.8.8 (2020-04-23)
Note: Version bump only for package nestjs-query
0.8.7 (2020-04-23)
- deps: update dependency pg to v8.0.3 (6a726e9)
- chore(renovate): Renovate to include examples
- chore(renovate): Renovate set ignorePaths to empty
- fix(deps): pin dependencies
- chore(deps): Update package-lock.json
- chore(deps): Update postgres backing app to 11.7
- docs(): Update Federation Docs
- chore(lerna): add hoist to lerna.json
- chore(deps): update dependency @nestjs/graphql to v7.3.4
- chore(deps): update dependency @types/node to v13.13.2
- chore(renovate): Update to automerge devDeps
- chore(deps): update dependency coveralls to v3.0.13
- chore(deps): update dependency eslint-config-prettier to v6.11.0
- feat(graphql): basic federation support.
- docs(graphql): federation docs.
- docs(typeorm): Call out foreign keys in entity and DTO #84
- docs(typeorm): Relations on an entity/dto #85
- chore(): upgrade dependencies.
- [FIXED] Add support for extending abstract object types #82
- [TESTS] Updated graphql types tests to check schema rather than spies.
- [FIXED] Mysql error "LIMIT in subquery" #77
- Changed
nestjs-query/query-typeorm
to not use subqueries to fetch relations.
- Changed
- [FIXED] Defining additional UpdateDtos breaks Schema. #72
- [FIXED] Tables with composite primary keys are not quoted properly.
- [DOCS] Added docs for working with multiple connections #73 - @johannesschobel
- Fix code formatting
- Update root package.json with common dependencies
- [DOCS] Update docs to include a complete example of custom methods #64
- [FIXED] Issue where creating or updating allows specifying primary keys #65
- [CHORE] Updated to
@nestjs/graphql
v7.1.3
- Removed
PartialType
andPartialInputType
in favor of@nestjs/graphql
implementation.
- [FIXED] Issue where update input DTO was not automatically created
- Updated to
@nestjs/graphql
v7.x
.- This was a passive change for the library usage however you should still follow the migration guide found here
- [FIXED] Get Underlying Entity Object #41
- Changed
TypeOrmQueryService
to operate on theEntity
- Added new
AssemblerQueryService
to translate between theDTO
andEntity
- Changed
- [ADDED] New
InjectTypeOrmQueryService
decorator to auto-create a TypeOrm query service.
- [DOCS] Added clarification around individual resolvers and relations with examples #42
- [ADDED] Exposed
Relatable
mixin from@nestjs-query/graphql
#42
- Added
decorators
option to resolver options to allow providing custom decorators to endpoints #36
- Updated all mutations to take a single
input
argument with custom fields.createOne(input: DTO)
->createOne(input: { [dtoName]: DTO })
createMany(input: DTO[])
->createOne(input: { [pluralDTOName]: DTO[] })
updateOne(id: ID, input: UpdateDTO)
->createOne(input: { id: ID, update: UpdateDTO })
updateMany(filter: Filter<DTO>, input: UpdateDTO)
->createOne(input: { filter: Filter<DTO>, update: UpdateDTO })
deleteOne(input: ID)
->deleteOne(input: {id: ID})
deleteMany(input: Filter<DTO>)
->createOne(input: { filter: Filter<DTO> })
- Updated docs to reflect changes.
- [FIXED] Validate Input for Create & Update #19
- [FIXED] Can't remove on Many-To-Many relations #31
- Update typescript to 3.8.
- Update dependency versions.
- Switched to github actions
- Hardened TypeORM querying
- Added filter for entity ids on relations to prevent querying for too many rows.
- Qualify all filter and sorting columns, to prevent column name collisions.
- Added dataloader support!
- Fixed issue with loading of many-to-many relations #22
- Fixed case where
@FilterableField
decorator was not passing arguments correctly to@Field
decorator #20
- Add
Assemblers
to convert DTOs and Entities that are a different shape. See https://doug-martin.github.io/nestjs-query/docs/concepts/assemblers
- Add
relations
to resolvers. See https://doug-martin.github.io/nestjs-query/docs/graphql/relations
- Dont allow empty filters with
updateMany
ordeleteMany
operations.
- Add ability to specify query defaults.
defaultResultSize
- the default number of results to return from a querymaxResultsSize
- the maximum number of results to return from a querydefaultSort
- The default sort to apply to queriesdefaultFilter
- The default filter to apply to queries
- Add files field to
@nestjs-query/core
package.json
- Fix package READMEs
- Add security scanning on sub modules.
- Add MIT license
- Initial Release