Tyk DataSources are exactly the same as GraphQL or REST DataSources.
The only difference is that you can directly choose an endpoint from your existing APIs using a drop-down. This makes it easier to set up and prevents typos compared to typing in the URL etc.
From a technical perspective there’s another difference:
Tyk DataSources make it possible to call into existing APIs on a Tyk Gateway, even if those are marked as internal. They also add a lot of flexibility as you can add custom middleware, AuthZ as well as AuthN, rate limits, quotas etc. to these.
In general, it is advised to first add all APIs you’d wish to add to a data graph as a dedicated API to Tyk. Then in a second step you’d add these to your data graph.
Then in a second step you’d add these to your data graph.
v3.2.0 internal datasorces (
TykGraphQLDataSource) will be deprecated at the API level. Please use