You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DataSource API was added to AS a few months before the new plugin API.
As it turns out, basically everything you can do with a DataSource you can also do with a plugin.
In the interest of keeping Apollo Server's API simple, I'd like to experiment with seeing if DataSources could just be a plugin rather than a core part of the AS API in AS3.
This wouldn't be removing the functionality entirely; it would just be a change from
new ApolloServer({dataSources: {x: new XDataSource()}})
to
new ApolloServer({plugins: [ApolloServerPluginDataSources({x: new XDataSource()})]})
We would introduce the new plugin as an alternative in v2 and remove the old version in v3.
The text was updated successfully, but these errors were encountered:
I really don't think we need the top-level dataSources option in AS3, but in the interest of scope I'll leave it in for now and remove this from the AS3 project.
The DataSource API was added to AS a few months before the new plugin API.
As it turns out, basically everything you can do with a DataSource you can also do with a plugin.
In the interest of keeping Apollo Server's API simple, I'd like to experiment with seeing if DataSources could just be a plugin rather than a core part of the AS API in AS3.
This wouldn't be removing the functionality entirely; it would just be a change from
to
We would introduce the new plugin as an alternative in v2 and remove the old version in v3.
The text was updated successfully, but these errors were encountered: