{"id":771,"date":"2019-04-25T19:26:05","date_gmt":"2019-04-25T19:26:05","guid":{"rendered":"http:\/\/www.smart-bricks.net\/?p=771"},"modified":"2019-04-28T22:23:11","modified_gmt":"2019-04-28T22:23:11","slug":"nest-js-6-improves-graphql-integration-and-improves-platform-flexibility","status":"publish","type":"post","link":"http:\/\/www.smart-bricks.net\/index.php\/2019\/04\/25\/nest-js-6-improves-graphql-integration-and-improves-platform-flexibility\/","title":{"rendered":"Nest.js 6 Improves GraphQL Integration and Improves Platform Flexibility"},"content":{"rendered":"\n<p>Nest.js recently <a href=\"https:\/\/medium.com\/@kammysliwiec\/announcing-nestjs-6-whats-new-38959d94221f\">announced the release of version 6<\/a> of their TypeScript framework. <a href=\"https:\/\/nestjs.com\/\">Nest.js<\/a>\n 6 improves support for GraphQL and also decouples the platform-specific\n portions of their framework to support applications beyond their \ntraditional Express and Node.js based architecture.<\/p>\n\n\n\n<p>Kamil Mysliwiec, creator of Nest.js and co-founder of Trilon.io, explains the changes in Nest.js 6 with GraphQL:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>One of the most common problems with GraphQL applications is a types \nredundancy. In order to solve this problem, in the previous version of \nNest, we have added a compiler that allows you to compile definitions \nwritten in SDL to the TypeScript interfaces (or classes). With 6.0.0, \nNest has been integrated with an <code>amazingtype-graphql<\/code>\n package which lets you generate your GraphQL files using only \nTypeScript decorators! Now you can choose which approach is a better fit\n for your requirements\u200a\u2014\u200athey are both available in the <code>@nestjs\/graphql<\/code> package.<\/p><\/blockquote>\n\n\n\n<p>Another significant change with version 6 is Nest.js&#8217; move beyond its\n primary focus as a server-side framework to being a more flexible and \ngeneral purpose framework. Mysliwiec explains:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>Platform independence makes it possible to create reusable logical \nparts that developers can use within different types of applications. \nWith Nest, you can easily build a web application, CLI, a jobs queue or \nanything else you can think of!<\/p><\/blockquote>\n\n\n\n<p>Current plans for the next major of Nest.js include rewriting the <a href=\"https:\/\/github.com\/nestjs\/swagger\">Nest.js Swagger module<\/a>\n to leverage the TypeScript AST to reduce decorator support and add \nsupport for generics, interfaces, circular-dependencies, and the \ngeneration of auto-response schemas. The Nest.js team also plans to \nimprove the DevOps workflow for supporting and deploying to serverless \nenvironments.<\/p>\n\n\n\n<p>For server-side applications, Nest.js leverages HTTP Server frameworks like <a href=\"https:\/\/expressjs.com\/\">Express<\/a> and <a href=\"https:\/\/www.fastify.io\/\">Fastify<\/a> and provides easy integration with a variety of third-party modules such as <a href=\"https:\/\/typeorm.io\/#\/\">TypeORM<\/a>.\n Nest.js provides a wide variety of architecture patterns and decorators\n including controllers, routing, providers, middleware, guards, and \ninterceptors. Nest.js provides an inversion of controller (IoC) \ncontainer architecture.<\/p>\n\n\n\n<p>Users of Nest.js looking to migrate to version 6 should follow the <a href=\"https:\/\/docs.nestjs.com\/migration-guide\">Nest.js migration guide<\/a>. Developers new to Nest.js should follow the <a href=\"https:\/\/docs.nestjs.com\/first-steps\">Nest.js getting started guide<\/a>.<\/p>\n\n\n\n<p>Nest.js is open source software available under the MIT license. Contributions and feedback are encouraged via the <a href=\"https:\/\/github.com\/nestjs\/nest\">Nest.js GitHub project<\/a> and should follow the <a href=\"https:\/\/github.com\/nestjs\/nest\/blob\/master\/CONTRIBUTING.md\">Nest.js contribution guidelines<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nest.js recently announced the release of version 6 of their TypeScript framework. Nest.js 6 improves support for GraphQL and also decouples the platform-specific portions of their framework to support applications beyond their traditional Express and Node.js based architecture. Kamil Mysliwiec, creator of Nest.js and co-founder of Trilon.io, explains the changes in Nest.js 6 with GraphQL:&hellip;&nbsp;<a href=\"http:\/\/www.smart-bricks.net\/index.php\/2019\/04\/25\/nest-js-6-improves-graphql-integration-and-improves-platform-flexibility\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Nest.js 6 Improves GraphQL Integration and Improves Platform Flexibility<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[14,24],"_links":{"self":[{"href":"http:\/\/www.smart-bricks.net\/index.php\/wp-json\/wp\/v2\/posts\/771"}],"collection":[{"href":"http:\/\/www.smart-bricks.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.smart-bricks.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.smart-bricks.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.smart-bricks.net\/index.php\/wp-json\/wp\/v2\/comments?post=771"}],"version-history":[{"count":1,"href":"http:\/\/www.smart-bricks.net\/index.php\/wp-json\/wp\/v2\/posts\/771\/revisions"}],"predecessor-version":[{"id":772,"href":"http:\/\/www.smart-bricks.net\/index.php\/wp-json\/wp\/v2\/posts\/771\/revisions\/772"}],"wp:attachment":[{"href":"http:\/\/www.smart-bricks.net\/index.php\/wp-json\/wp\/v2\/media?parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.smart-bricks.net\/index.php\/wp-json\/wp\/v2\/categories?post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.smart-bricks.net\/index.php\/wp-json\/wp\/v2\/tags?post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}