Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-28-2021 11:03 PM
Looking at the GraphQL Library @auth
directive documention, it isn't clear to me at what point the auth rules are evaluated, or how to combine the rules to specify the behavior I want.
Given a simple Schema
type Author {
id: ID! @id
name: String!
posts: [Post!] @relationship(type: "AUTHORED", direction: out)
}
type Post {
id: ID! @id
created: DateTime! @timestamp(operations: [CREATE])
updated: DateTime @timestamp(operations: [UPDATE])
published: DateTime
title: String!
body: String!
published: Boolean!
author: Author! @relationship(type: "AUTHORED", direction: in)
}
extend Type Post @auth(rules: [<...>])
All the sessions of the conference are now available online