I have a graphql model in Amplify as follows:
type Blog @model @auth(rules: [
{ allow: owner },
{ allow: groups, groups: ["admins"] },
{ allow: public, provider: apiKey, operations: [read] }
]){
id: ID!
title: String!
content: String!
author: String
}
I would like all field to have read access via an API key except the 'author' field.It should only be readable by owner and the 'Admin' group. I have tried all sorts of combinations of top level and field level @auth directives but it doesn't work. Does anyone knows how to solve this. Thank you