Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsure of what this library is providing exactly.. #13

Open
tnrich opened this issue Jun 19, 2016 · 1 comment
Open

Unsure of what this library is providing exactly.. #13

tnrich opened this issue Jun 19, 2016 · 1 comment

Comments

@tnrich
Copy link

tnrich commented Jun 19, 2016

Hey there,

I'm interested in this library because I'm currently using bookshelf in an app and am curious about graphql. I've peeked at the source code and tests a few times now, but don't quite grok what the point of this library is.. Is the idea that you can use the bookshelf models you've already defined within your graphql types?

I think it would be nice if a clearer explanation existed on the readme describing the problem this library is trying to solve as well as what its philosophy is.

Thanks very much,
Thomas

@brysgo
Copy link
Owner

brysgo commented Jun 29, 2016

Hey Thomas,

I would be happy to write more on what the library provides and the philosophy. In short, you can use your existing bookshelf models, and build a graphql api from them without having to write your own resolve functions for attribute accessors and simple relation traversals.

I have purposely avoided generating schema automatically because your graphql schema should be your API while your bookshelf models contain code that you may not want to expose on an API level.

Best,
Bryan

P.S. Sorry for the delayed response.

brysgo added a commit that referenced this issue Aug 30, 2016
Hopefully addresses #13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants