├── .eslintrc.js ├── .gitignore ├── LICENSE ├── README.md ├── example ├── .gitignore ├── README.md ├── database │ ├── .gitignore │ ├── migrations │ │ ├── 20170311114505_create_users.js │ │ ├── 20170311114506_create_articles.js │ │ └── 20170311114507_create_comments.js │ └── seeds │ │ ├── articles.js │ │ ├── comments.js │ │ └── users.js ├── graphql │ └── schema.js ├── index.js ├── knexfile.js ├── models │ └── index.js └── package.json ├── package.json ├── src ├── index.js └── loaders │ └── index.js └── test ├── common ├── models.js └── schema.js └── run ├── 01-belongs-to.js ├── 02-belongs-to-many.js ├── 03-belongs-to-many-where.js ├── 04-has-many.js ├── 05-has-one.js ├── 06-complex-query.js ├── 07-query-with-arguments.js ├── README.md └── hooks.js /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | .idea 4 | package-lock.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/README.md -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | package-lock.json -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/README.md -------------------------------------------------------------------------------- /example/database/.gitignore: -------------------------------------------------------------------------------- 1 | example.db -------------------------------------------------------------------------------- /example/database/migrations/20170311114505_create_users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/database/migrations/20170311114505_create_users.js -------------------------------------------------------------------------------- /example/database/migrations/20170311114506_create_articles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/database/migrations/20170311114506_create_articles.js -------------------------------------------------------------------------------- /example/database/migrations/20170311114507_create_comments.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/database/migrations/20170311114507_create_comments.js -------------------------------------------------------------------------------- /example/database/seeds/articles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/database/seeds/articles.js -------------------------------------------------------------------------------- /example/database/seeds/comments.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/database/seeds/comments.js -------------------------------------------------------------------------------- /example/database/seeds/users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/database/seeds/users.js -------------------------------------------------------------------------------- /example/graphql/schema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/graphql/schema.js -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/index.js -------------------------------------------------------------------------------- /example/knexfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/knexfile.js -------------------------------------------------------------------------------- /example/models/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/models/index.js -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/example/package.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/package.json -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/src/index.js -------------------------------------------------------------------------------- /src/loaders/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/src/loaders/index.js -------------------------------------------------------------------------------- /test/common/models.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/test/common/models.js -------------------------------------------------------------------------------- /test/common/schema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/test/common/schema.js -------------------------------------------------------------------------------- /test/run/01-belongs-to.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/test/run/01-belongs-to.js -------------------------------------------------------------------------------- /test/run/02-belongs-to-many.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/test/run/02-belongs-to-many.js -------------------------------------------------------------------------------- /test/run/03-belongs-to-many-where.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/test/run/03-belongs-to-many-where.js -------------------------------------------------------------------------------- /test/run/04-has-many.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/test/run/04-has-many.js -------------------------------------------------------------------------------- /test/run/05-has-one.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/test/run/05-has-one.js -------------------------------------------------------------------------------- /test/run/06-complex-query.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/test/run/06-complex-query.js -------------------------------------------------------------------------------- /test/run/07-query-with-arguments.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/test/run/07-query-with-arguments.js -------------------------------------------------------------------------------- /test/run/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/test/run/README.md -------------------------------------------------------------------------------- /test/run/hooks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weyoss/graphql-bookshelfjs/HEAD/test/run/hooks.js --------------------------------------------------------------------------------