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

I got error message "Request failed with status code 401" #13

Closed
openmind-gnerlich opened this issue Sep 19, 2022 · 1 comment
Closed

Comments

@openmind-gnerlich
Copy link

openmind-gnerlich commented Sep 19, 2022

How can I controll iam auth for @count? I want to get count over IAM. It is not working.

My schema:

@count
@model
@auth(rules: [
    {allow: public, provider: iam},
    {allow: groups, groups: ["admin"], operations: [create,delete,read,update]}
])
{
    id: ID!
    caption: String
    video: Video! @hasOne
    userId: Ticket! @hasOne
    LikeSuggestions: [LikeSuggestion] @hasMany(indexName: "bySignSuggestion", fields: ["id"])
    approvalStatus: ApprovalStatusEnum!
    reasonForRejection: String,
    updatedAt: AWSDateTime!
}```
@multimeric
Copy link
Owner

Yes, this is currently a missing feature, I believe this is a duplicate of #4. I don't actually have time to resolve this at the moment, but I would happily review a PR. You could refer to the amplify source code for the list resolver and work out how to apply it to the count resolver implemented here.

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