The Wayback Machine - https://web.archive.org/web/20201002070041/https://github.com/topics/graphql-tools
Skip to content
#

graphql-tools

Here are 83 public repositories matching this topic...

thetmkay
thetmkay commented Jul 1, 2018

The fluent API seems to try to mimic natural language, e.g.

 isThis(error)
 .UserNotFoundError(() => ...)
 .NotAProphetError(() => ...)

errorHere(*error*) uses the following construct:

 if(errorHere(error).isNotAProphetError){
   // Do something
 } else if(errorHere(error).isProphetNotFoundWithId){
   // Do something else
 }

would

`thisError(error).i

Improve this page

Add a description, image, and links to the graphql-tools topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the graphql-tools topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.