Skip to content

Instantly share code, notes, and snippets.

@scottdomes
Created January 26, 2019 00:03
Show Gist options
  • Select an option

  • Save scottdomes/62083c67ccbba10df1ab8d84f10899e3 to your computer and use it in GitHub Desktop.

Select an option

Save scottdomes/62083c67ccbba10df1ab8d84f10899e3 to your computer and use it in GitHub Desktop.

Revisions

  1. scottdomes created this gist Jan 26, 2019.
    18 changes: 18 additions & 0 deletions query.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    import graphql from 'babel-plugin-relay/macro';

    export const GET_CONTACTS = graphql`
    query queryQuery {
    viewer {
    id
    allContacts(first: 1000) @connection(key: "Main_allContacts") {
    edges {
    node {
    id
    name
    email
    }
    }
    }
    }
    }
    `;