Skip to content

Relay node with scope auth #1065

Answered by hayes
dohaicuong asked this question in Q&A
Oct 6, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

There are 2 options:

You can define a scope on the node/nodes field using a callback so you have access to the id(s) arg, which should let you get the typename and apply checks based on the type.

Alternatively you can add a check inside the loadOne method using await builder.runAuthScopes(context, scopes)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dohaicuong
Comment options

@dohaicuong
Comment options

@hayes
Comment options

hayes Oct 6, 2023
Maintainer

Answer selected by dohaicuong
@dohaicuong
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants