Created
June 22, 2019 19:07
-
-
Save chris001177/197fdb26ae95f9eacce03abe6c93f8a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { RESTDataSource } = require("apollo-datasource-rest"); | |
| class RandomUser extends RESTDataSource { | |
| constructor() { | |
| super(); | |
| this.baseURL = "https://randomuser.me/api/"; | |
| } | |
| } | |
| module.exports = RandomUser; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment