Closed ecwyne closed 7 years ago
Changes
gramps({dataSources}) => ({schema, context});
Into
gramps({dataSources}) => req => ({schema, context});
This way all of the heavy lifting of combining schemas is done ONCE instead of re-combining on every query. schema is wrapped in a closure and only context is recalculated on every query (as it needs to be)
schema
context
Changes
Into
This way all of the heavy lifting of combining schemas is done ONCE instead of re-combining on every query.
schema
is wrapped in a closure and onlycontext
is recalculated on every query (as it needs to be)