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

[Question] How do I log in? #4

Closed
Industrial opened this issue Nov 7, 2016 · 2 comments
Closed

[Question] How do I log in? #4

Industrial opened this issue Nov 7, 2016 · 2 comments
Labels

Comments

@Industrial
Copy link

Hi!

great project! I am using Apollo server in my project and I was just about to map out the API for sessions / login when I saw your project.

When I look in Graphiql there are the methods saveUser and deleteUser. There's no mutation for all the other types/things.

When I query for BlogPosts (hasMany BlogComment) I can't get the comments out. This is where I'm doing it manually; https://gist.github.com/Industrial/5342b9dbc41ecc601c9996c4eb28d8a6

@Tallyb Tallyb added the question label Nov 8, 2016
@Tallyb
Copy link
Owner

Tallyb commented Nov 8, 2016

@Industrial Thanks for your support.

This project is WIP, and I am aware that many things are still missing... :)
Remote methods (such as login / logout) is surely one of them.

As for query "has many" relationships - this should work. Look at the code here: https://github.com/Tallyb/loopback-graphql/blob/master/lib/resolvers.js#L34

The resolve object gets an obj param that contains its parent context, and then I use it to query the related items.

@Tallyb
Copy link
Owner

Tallyb commented Feb 7, 2017

@Industrial I am closing it for now. Please re-open if it is still an issue.

@Tallyb Tallyb closed this as completed Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants