Redwood v0.37 updates
This commit is contained in:
@@ -7,8 +7,8 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Query {
|
||||
posts: [Post!]!
|
||||
post(id: Int!): Post
|
||||
posts: [Post!]! @skipAuth
|
||||
post(id: Int!): Post @skipAuth
|
||||
}
|
||||
|
||||
input CreatePostInput {
|
||||
@@ -22,8 +22,8 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
createPost(input: CreatePostInput!): Post!
|
||||
updatePost(id: Int!, input: UpdatePostInput!): Post!
|
||||
deletePost(id: Int!): Post!
|
||||
createPost(input: CreatePostInput!): Post! @requireAuth
|
||||
updatePost(id: Int!, input: UpdatePostInput!): Post! @requireAuth
|
||||
deletePost(id: Int!): Post! @requireAuth(roles: ["FOO"])
|
||||
}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user