In a GraphQL query, we ask for entities, also called “Types”. Since each type gets a dedicated handler, it will be fairly easy to unit test them.

Hierarchy

By its nature, GraphQL is hierarchical and follows relationships between objects, as opposed to Rest where you might need additional requests to fetch linked data. Once again, when writing your query, you control the structure of the answer you want.

Strongly typed

Unlike Rest APIs, GraphQL strongly relies on types within its schema, and gives you the ability to create your own types on top of its internal types. This
Type System
allows GraphQL to provide descriptive error messages before executing a query.

Example of a bad parameter type:

This Type System highly contributes to all the tooling available around GraphQL, such as
mock-server
from graphql-tools for instance.

Since the whole schema is easily available on the client through GraphiQL, we can enjoy efficient auto-completion and light but complete documentation, depending on how well description is put on each field:

With Swagger UI (a well-adopted standard to document APIs, example ), all you need as a consumer is a list of endpoints with a description of all parameters. Here with GraphQL, all you need is the schema. Apart from the schema, the problematic is the same and will depend on how much effort the dev team has put in the doc, by adding helpful comments to every field for example.

As you might have guessed, GraphQL also comes with some disadvantages. Let’s have a look at the main ones.

Server code is more complex
but at the end, same code will be used to answer multiple use-cases.

Defining the schema is a bit verbose
but once it’s done, our server will be able to answer multiple use-cases.

To consume a GraphQL API, several clients already exist, depending on your programming language. But they
lack maturity
compared to any client consuming Rest services.

Benchmark Brings You
Home

We at Benchmark continually monitor your loan and the market so you don’t have to. This way, you are given the best product to fit your unique situation and are always getting the best mortgage available.

For nearly two decades, we have been building a dynamic lending community. Ourentire business is based on the preservation and strengthening of present and future relationships. The power of Creativity and Innovation is our edge, and sets us apart in the mortgage market.

Buying a home can seem like a daunting task, but it doesn’t have to be one. This is the Benchmark University. Browse, learn, and enjoy the journey to your new home.

Our core values drive our culture, shape our paradigm, and have been the foundation of our success. It’s one thing to great service; at Benchmark, we bake it right in.

We make an impact beyond the mortgage industry. We honor wounded veterans, promote their support, and help them re-integrate into successful civilian life.

Welcome to Benchmark,

Benchmark is a remarkable community of mortgage professionals. At Benchmark, we have a clearly defined set of core values that we live out and practice every day. Having carefully selected each team member one person at a time, and with an average of over a decade of individual experience, we have assembled what we believe is the best team in the mortgage industry today. Not only does our team go the extra mile to serve our branches, loan officers, and support teams, we also stand ready to deliver an exceptional experience that is second to none for our customers. Please reach out and let us know if we can help you take advantage of the Benchmark opportunity today.

The Council for International Organizations of Medical Sciences (CIOMS) is an international, non-governmental, non-profit organization established jointly by WHO and UNESCO in 1949. CIOMS represents a substantial proportion of the biomedical scientific community through its member organizations, which include many of the biomedical disciplines, national academies of sciences and medical research councils. CIOMS mission is to advance public health through guidance on health research including ethics, medical product development and safety.