Skip to content

Commit

Permalink
Move default resolvers and mutations to vulcan:lib; create new versio…
Browse files Browse the repository at this point in the history
…ns for both
  • Loading branch information
SachaG committed Oct 15, 2019
1 parent cc860c7 commit 19c6647
Show file tree
Hide file tree
Showing 11 changed files with 1,759 additions and 696 deletions.
910 changes: 455 additions & 455 deletions packages/vulcan-core/lib/modules/default_mutations.js

Large diffs are not rendered by default.

464 changes: 232 additions & 232 deletions packages/vulcan-core/lib/modules/default_resolvers.js

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions packages/vulcan-core/lib/modules/index.js
Expand Up @@ -2,13 +2,10 @@
// import and re-export
export * from 'meteor/vulcan:lib';

export * from './default_mutations.js';
export * from './default_resolvers.js';

export * from './components.js';

export { default as App } from './components/App.jsx';
export { default as Datatable } from './components/Datatable/index.js';
export { default as Datatable } from './components/datatable/index.js';
export { default as Dummy } from './components/Dummy.jsx';
export { default as DynamicLoading } from './components/DynamicLoading.jsx';
export { default as Error404 } from './components/Error404.jsx';
Expand Down
2 changes: 1 addition & 1 deletion packages/vulcan-lib/lib/client/main.js
Expand Up @@ -8,5 +8,5 @@ export * from './apollo-client';
// createCollection, resolvers and mutations mocks
// avoid warnings when building with webpack
export * from './connectors';
export * from './mutators';
export * from './mock';
export * from './errors';
8 changes: 8 additions & 0 deletions packages/vulcan-lib/lib/client/mock.js
@@ -0,0 +1,8 @@
// mock mutators
export const createMutator = null;
export const updateMutator = null;
export const deleteMutator = null;

// mock default mutations and resolvers
export const getDefaultResolvers = () => ({});
export const getDefaultMutations = () => ({});
4 changes: 0 additions & 4 deletions packages/vulcan-lib/lib/client/mutators.js

This file was deleted.

0 comments on commit 19c6647

Please sign in to comment.