daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import createQueryObservable from './createQueryObservable'
  2. import { gql } from "react-apollo"
  3. import client from "./client"
  4.  
  5. const REPOS_QUERY = gql`
  6.   query {
  7.   repository(owner:"octocat", name:"Hello-World") {
  8.     issues(last:20, states:CLOSED) {
  9.       edges {
  10.         node {
  11.           title
  12.           url
  13.           labels(first:5) {
  14.             edges {
  15.               node {
  16.                 name
  17.               }
  18.             }
  19.           }
  20.         }
  21.       }
  22.     }
  23.   }
  24. }
  25. `
  26. const Repos = createQueryObservable(client.watchQuery({ query: REPOS_QUERY }))
  27. export default Repos
RAW Paste Data
Top