Skip to content
New issue

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

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

Already on GitHub? # to your account

Explanation of Viewer #262

Open
harrisrobin opened this issue Jul 9, 2018 · 0 comments
Open

Explanation of Viewer #262

harrisrobin opened this issue Jul 9, 2018 · 0 comments

Comments

@harrisrobin
Copy link

Hi,

I am a bit confused by Viewer in this example.

First of all, why is this necessary:
https://github.com/prismagraphql/graphql-server-example/blob/800506efcacb15c2e16bdb6d5a42ea275070a095/src/resolvers/Query.ts#L6

It seems to be doing nothing, yet if i look at schema.graphql here you have viewer in the type Query. I guess it's to match that signature, however why are we putting Viewer here in this case, next to Mutation and Query?

This example works but I'd love a little clarification on Viewer!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant