Our great sponsors
-
fastify-discord-bot-demo
Discontinued A collection of my Fastify blog posts! [Moved to: https://github.com/Eomm/blog-posts]
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
If you're using Fastify with Mercurius as your GraphQL adapter, you may be looking for some advanced usages. In this article, we'll explore a real world example with Dynamic GQL queries with Mercurius.
For the sake of simplicity, we will not list all the tests here, but you can find the complete complete source code in the GitHub repository.
We can implement the user role retrieval by installing the mercurius-auth plugin.