-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
16 lines (14 loc) · 795 Bytes
/
schema.graphql
File metadata and controls
16 lines (14 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
type Post @auth(
query: { rule: "query($user_id: String!) { queryPost(filter: { postOwnerID: { eq: $user_id } }) { id } } " }
add: { rule: "query($user_id: String!) { queryPost(filter: { postOwnerID: { eq: $user_id } }) { id } } " }
delete: { rule: "query($user_id: String!) { queryPost(filter: { postOwnerID: { eq: $user_id } }) { id } } " }
update: { rule: "query($user_id: String!) { queryPost(filter: { postOwnerID: { eq: $user_id } }) { id } } " }
) {
id: ID!
title: String!
imageUrl: String!
text: String!
dateTime: DateTime!
postOwnerID: String! @search(by:[hash])
}
# Dgraph.Authorization {"Header":"X-Auth-Token", "VerificationKey":"secret","Algo":"HS256", "Namespace":"https://dgraph.io/jwt/claims","Audience":["graphql-firebase-flutter"], "ClosedByDefault":true}