UNPKG

390 BJavaScriptView Raw
1"use strict";
2
3exports.__esModule = true;
4exports.schemaReducer = void 0;
5var _graphql = require("graphql");
6const schemaReducer = (state = new _graphql.GraphQLSchema({
7 query: null
8}), action) => {
9 switch (action.type) {
10 case `SET_SCHEMA`:
11 return action.payload;
12 default:
13 return state;
14 }
15};
16exports.schemaReducer = schemaReducer;
17//# sourceMappingURL=schema.js.map
\No newline at end of file