Skip to content

Commit

Permalink
added WordExpressGraphQLSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramsay Lanier committed Jan 27, 2016
1 parent f15dd96 commit f857d6b
Show file tree
Hide file tree
Showing 7 changed files with 187 additions and 300 deletions.
7 changes: 4 additions & 3 deletions data/connection.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import WordExpressDatabase from './db';
import { WordExpressDatabase } from 'wordexpress-schema';
import { WordExpressDatabase, WordExpressGraphQLSchema } from 'wordexpress-schema';
// import { WordExpressGraphQLSchema} from './schema/schema';
import { publicSettings, privateSettings } from '../settings/settings';

const { name, username, password, host } = privateSettings.database;
Expand All @@ -16,5 +16,6 @@ const connectionDetails = {

const Database = new WordExpressDatabase(connectionDetails);
const ConnQueries = Database.queries;
const Schema = WordExpressGraphQLSchema(ConnQueries, publicSettings);

export default ConnQueries;
export default Schema;
45 changes: 0 additions & 45 deletions data/schema/menu.js

This file was deleted.

48 changes: 0 additions & 48 deletions data/schema/page.js

This file was deleted.

59 changes: 0 additions & 59 deletions data/schema/post.js

This file was deleted.

66 changes: 0 additions & 66 deletions data/schema/postmeta.js

This file was deleted.

Loading

0 comments on commit f857d6b

Please sign in to comment.