Skip to content

dailypenn/jay

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Why Jay

We are in the process of transitioning to the convention of naming our projects by bird names. Starting with Canada Goose for mobile, we are naming the graphQL backend by jay for two reasons (according to @dtao).

  • Blue Jay is a bird
  • Jay Gatsby has Gatsby in it

Development

run npm start, explorer is at localhost:5000/graphql

Deployment

gcloud app deploy

Example query

Home Page

Note: it should be possible to abstract out a lot of the code below using fragments or ...

query {
  centerpiece: articles(first: 1, section: "centerpiece") {
    hasNextPage
    edges {
      article {
        headline
      }
      cursor
    }
  }
  
  top: articles(first: 5, section: "top") {
    hasNextPage
    edges {
      article {
        headline
      }
      cursor
    }
  }
  
  most_recent: articles(first: 5, section: "news") {
    hasNextPage
    edges {
      article {
        headline
      }
      cursor
    }
  }
  
}

CEO docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published