dataSources option for rest apis
See original GitHub issueIs there any way I can provide dataSources
for rest apis
e.g With ApolloServer
it can be done as -
const server = new ApolloServer({
typeDefs,
resolvers,
dataSources: () => {
return {
moviesAPI: new MoviesAPI(),
personalizationAPI: new PersonalizationAPI(),
};
},
context: () => {
return {
token: 'foo',
};
},
});
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:10
Top Results From Across the Web
Guide to REST API data sources and data feeds
Guide to REST API data sources and data feeds · How to read an API query · Example API queries · Supported query...
Read more >Fetching from REST - Apollo GraphQL Docs
The RESTDataSource class simplifies fetching data from REST APIs and helps handle caching, deduplication, and errors while resolving operations.
Read more >REST Datasource - Tyk.io
The REST Datasource is a base component of UDG to help you add existing REST APIs to your data graph. By attaching a...
Read more >Data Sources Methods - Tableau Help
Using the data sources methods of the Tableau Server REST API you can: Publish, update metadata, delete, or refresh the extract of a...
Read more >RESTful Data Source Options - Logi Analytics
JReport Engine will use the REST Web Service Client API (such as the JAX-RS client API of Java EE) to get remote data...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can pass through
context
@japboy seems like this is not possible with Yoga. I wound up switching my server to Apollo Server 2 so I could use it.
Sent with GitHawk