Advertisement
Guest User

Untitled

a guest
Feb 8th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const countries = {
  2.     type: new GraphQLList(countryType),
  3.     resolve: (root, args, req) => {
  4.         return new Promise((resolve, reject) => {
  5.             getCountries({req})
  6.                 .then(function (res) {
  7.                     resolve(res.data.vocs);
  8.                 })
  9.                 .catch(error => {
  10.                     log(error);
  11.                 });
  12.         });
  13.     }
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement