react

GraphQL with ASP.NET Core (Part- IV : GraphiQL - An in-browser IDE)

Read the previous part - GraphQL with ASP.NET Core Part- III : Dependency Injection GraphiQL (spelled graphical) is an in-browser IDE for exploring GraphQL. I think it's a must-have tool for any server running behind GraphQL. With GraphiQL in place, you can easily give yourself or your team an in-depth insight of your API. There are setups you have to do first. We need some packages installed. Create a package.json file and paste the following snippet, { "name": "GraphQLAPI", "version": "1.0.0", "main": "index.js", "author": "Fiyaz Hasan", "license"…

Keep reading

My Notebook: Redux & NGRX

State: So, what do you think of the following simple app? If I tell you to represent the current state of the app in form of a simple javascript object, how would you approach? I can only think of two different ways, let initialState = { counter: 0, greeting: 'Hi there!' } Or, let initialState = { state: { counter: 0, greeting: 'Hi there!' } } However, I would prefer the first one since they (counter and greeting) don't relate to each other. If they were instead firstName and lastName, I would have extracted them in…

Keep reading