Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "express"


Apollo-Server-Express 1.0 to 2.0: Fix 'graphiqlExpress and graphiqlExpress is not a function'

  • The tutorial divides the language types in a schema directory, which is great for code maintainability, but it also means you have to include the tag per file (_input.js, _mutation.js, _query.js, _type.js, graphql/index.js).
  • The difference is that apollo-server will help you create a GraphQL server with everything encapsulated for you, but if you want to add things like middlewares and other express things such as authentication and so on, you have to use some integration, such as apollo-server-express so you can use applyMiddleware.
  • Older version of apollo-server would allow you to use applyMiddleware directly without the need to use apollo-server-express but not anymore.
  • In resume: if you have already an express server, stick to apollo-server-express or if you want to use middlewares for your GraphQL server.
  • If you only want a GraphQL server, just use apollo-server and you are good to go.

save | comments | report | share on


Apollo-Server-Express 1.0 to 2.0: Fix 'graphiqlExpress and graphiqlExpress is not a function'

  • Unlike REST API where we consume different endpoints depending on the resource we need, in GraphQL you only need one for everything.
  • As of August 2018, ApolloServer has migrated from 1.0 to 2.0 with significant changes to the patterns and code (see here and here).
  • The tutorial divides the language types in a schema directory, which is great for code maintainability, but it also means you have to include the tag per file (_input.js, _mutation.js, _query.js, _type.js, graphql/index.js).
  • Moreover, graphiqlExpress and graphiqlExpress are replaced by ApolloServer, which you can wrap as a middleware to app.
  • GraphiQLExpress and GraphQLExpress have been replaced by ApolloServer with the additional typeDefs and resolvers as parameters.
  • Take note of the schema variable, as it is imported in graphql/index.js.
  • If you followed the instructions properly, the GraphQL Playground should show up in your specified endpoint.

save | comments | report | share on


On SGQR, Singapore's unified QR code payment system

  • SGQR code is purportedly Singapore’s effort in “unifying” the fragmented e-payment market – what with DBS PayLah!, Singtel Dash, Grab Pay, LiquidPay, AliPay etc coming into the fray.
  • In other words, ideally a consumer can use his/her preferred payment app to make payment to a merchant through SGQR.
  • On the upside, consumer will only see one QR code per merchant.
  • On the downside, while the SGQR specification can enable multiple e-payment providers, merchants are unlikely to sign up with ALL of them (up to 27 payment schemes).
  • So you can end up in a situation where you see a SGQR code but are unable to use your preferred payment app (say Grab Pay) to make payment.
  • After some research, I found on MAS website that it’s based on EMVCo QR code.
  • It’s clear that this QR code contains meta-data for only some payment providers.

save | comments | report | share on


Three Ways to Future-Proof Your Storage Networks for the Next Decade through an All-Flash Data Center

  • Thankfully, storage technologies such as flash and NVMe have revolutionized key performance factors and have a huge impact on how future storage infrastructure is designed and operated.
  • Modernizing the SAN infrastructure with Cisco MDS 32G solution will give you the required performance, deep visibility and a hardware-based solution for congestion detection and avoidance.
  • Near-Term Future – All Flash Arrays Enterprises: As the SAN infrastructure grows and as more hosts and targets are added to support new app requirements, troubleshooting and maintenance will become more complex.
  • The new MDS Diagnostic Suite provides users with enhanced visibility at the edges as well as the core of their SAN fabric.
  • Long-Term Future – NVMe based high-performance Arrays and NVMe over Fabric: NVM Express (NVMe) is an optimized, high-performance, scalable interface designed to work with current and the next-generation NVM technologies.

save | comments | report | share on