Skip to content
#

graphql-tools

Here are 90 public repositories matching this topic...

sherodtaylor
sherodtaylor commented Jun 16, 2021

It seems like graphql parser doesn't like graphql comments in the schemas? This is using the federated proxy example.

build base schema: parse graphql document string: external: unexpected token - got: COMMENT want one of: [], locations:

remote schema

input UserInput {
    userID: Int
	# Some comment
	place: String
}

QLens is an electron app which dynamically generates GraphQL Schemas and Mongo Schema visualization. QLens significantly cuts development time by automating the formation of their GraphQL schemas based on information fetched from their non-relational database.

  • Updated Apr 22, 2021
  • JavaScript
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