-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
good first issueGood for newcomersGood for newcomersissue: enhancementIssue suggesting an enhancement to an existing featureIssue suggesting an enhancement to an existing featureseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solveIf the issue only affects a very niche base of users and an easily implemented workaround can solvesource: plugin:graphqlSource is plugin/graphql packageSource is plugin/graphql package
Description
What is the current behavior?
I am using GraphQL plugin and the query 'me' doesn't have for example a related content by the user, just the basics, id, username, email e.t.c..
for example I have to do this way,
query {
user(id: "5c38667108f3c10d9fe2981f") {
articles {
posts
}
}
}
which means I have to allow a user to access /user:_id which also exposes that the user can get other users content!
Steps to reproduce the problem
Create a content add a field and relation to a user and do a query "me" with the related content
Suggested solutions
It will be nice to have a way we can do this
query {
me {
articles {
posts
}
}
}
which means a user has access to only his/her content.
Aurelsicoko, SkyzohKey, hendrikgaffo, aballaci, miguelangeltorresfp and 8 more
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersissue: enhancementIssue suggesting an enhancement to an existing featureIssue suggesting an enhancement to an existing featureseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solveIf the issue only affects a very niche base of users and an easily implemented workaround can solvesource: plugin:graphqlSource is plugin/graphql packageSource is plugin/graphql package