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
This package is now updated for Apollo Server v4, which also makes it easier to use without apollo server.
This changes how initialisation works, there is no longer a need to call .initialize() on the class after creating it with new
Instead you just pass it all to the constructor, therefore the second options argument of the constructor now takes a cache as well, and if none is provided an in-memory key value cache will be used
documents now automatically get createdAt and updatedAt timestamps
If the datasource is initialised with something that isn't a firestore collection a normal Error will be thrown instead of an ApolloError, this allows the package to not depend on apollo-server-errors which in turn depends on graphql, which saves us ~2.7M unpacked
The internal reviver and replacer used with JSON.parse and JSON.stringify are now present on the initialised array, to make custom interactions with the cache easier