@netlify/content-engine
Version:
14 lines • 451 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.schemaReducer = void 0;
const graphql_1 = require("graphql");
const schemaReducer = (state = new graphql_1.GraphQLSchema({ query: null }), action) => {
switch (action.type) {
case `SET_SCHEMA`:
return action.payload;
default:
return state;
}
};
exports.schemaReducer = schemaReducer;
//# sourceMappingURL=schema.js.map
;