Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const countries = {
- type: new GraphQLList(countryType),
- resolve: (root, args, req) => {
- return new Promise((resolve, reject) => {
- getCountries({req})
- .then(function (res) {
- resolve(res.data.vocs);
- })
- .catch(error => {
- log(error);
- });
- });
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement