Kurt/rw 37 upgrade (#566)
* Update readme * Upgrade redwood to 0.37.x
This commit was merged in pull request #566.
This commit is contained in:
@@ -11,9 +11,10 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Query {
|
||||
projectReactions: [ProjectReaction!]!
|
||||
projectReaction(id: String!): ProjectReaction
|
||||
projectReactions: [ProjectReaction!]! @skipAuth
|
||||
projectReaction(id: String!): ProjectReaction @skipAuth
|
||||
projectReactionsByProjectId(projectId: String!): [ProjectReaction!]!
|
||||
@skipAuth
|
||||
}
|
||||
|
||||
input ToggleProjectReactionInput {
|
||||
@@ -30,10 +31,11 @@ export const schema = gql`
|
||||
|
||||
type Mutation {
|
||||
toggleProjectReaction(input: ToggleProjectReactionInput!): ProjectReaction!
|
||||
@requireAuth
|
||||
updateProjectReaction(
|
||||
id: String!
|
||||
input: UpdateProjectReactionInput!
|
||||
): ProjectReaction!
|
||||
deleteProjectReaction(id: String!): ProjectReaction!
|
||||
): ProjectReaction! @requireAuth
|
||||
deleteProjectReaction(id: String!): ProjectReaction! @requireAuth
|
||||
}
|
||||
`
|
||||
|
||||
@@ -11,8 +11,8 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Query {
|
||||
comments: [Comment!]!
|
||||
comment(id: String!): Comment
|
||||
comments: [Comment!]! @skipAuth
|
||||
comment(id: String!): Comment @skipAuth
|
||||
}
|
||||
|
||||
input CreateCommentInput {
|
||||
@@ -28,8 +28,9 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
createComment(input: CreateCommentInput!): Comment!
|
||||
createComment(input: CreateCommentInput!): Comment! @requireAuth
|
||||
updateComment(id: String!, input: UpdateCommentInput!): Comment!
|
||||
deleteComment(id: String!): Comment!
|
||||
@requireAuth
|
||||
deleteComment(id: String!): Comment! @requireAuth
|
||||
}
|
||||
`
|
||||
|
||||
@@ -15,6 +15,6 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
sendAllUsersEmail(input: Email!): EmailResponse!
|
||||
sendAllUsersEmail(input: Email!): EmailResponse! @requireAuth
|
||||
}
|
||||
`
|
||||
|
||||
@@ -26,9 +26,10 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Query {
|
||||
projects(userName: String): [Project!]!
|
||||
project(id: String!): Project
|
||||
projects(userName: String): [Project!]! @skipAuth
|
||||
project(id: String!): Project @skipAuth
|
||||
projectByUserAndTitle(userName: String!, projectTitle: String!): Project
|
||||
@skipAuth
|
||||
}
|
||||
|
||||
input CreateProjectInput {
|
||||
@@ -55,14 +56,15 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
createProject(input: CreateProjectInput!): Project!
|
||||
forkProject(input: ForkProjectInput!): Project!
|
||||
createProject(input: CreateProjectInput!): Project! @requireAuth
|
||||
forkProject(input: ForkProjectInput!): Project! @requireAuth
|
||||
updateProject(id: String!, input: UpdateProjectInput!): Project!
|
||||
@requireAuth
|
||||
updateProjectImages(
|
||||
id: String!
|
||||
mainImage64: String
|
||||
socialCard64: String
|
||||
): Project!
|
||||
deleteProject(id: String!): Project!
|
||||
): Project! @requireAuth
|
||||
deleteProject(id: String!): Project! @requireAuth
|
||||
}
|
||||
`
|
||||
|
||||
@@ -10,7 +10,7 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Query {
|
||||
socialCards: [SocialCard!]!
|
||||
socialCard(id: String!): SocialCard
|
||||
socialCards: [SocialCard!]! @skipAuth
|
||||
socialCard(id: String!): SocialCard @skipAuth
|
||||
}
|
||||
`
|
||||
|
||||
@@ -10,8 +10,8 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Query {
|
||||
subjectAccessRequests: [SubjectAccessRequest!]!
|
||||
subjectAccessRequest(id: String!): SubjectAccessRequest
|
||||
subjectAccessRequests: [SubjectAccessRequest!]! @requireAuth
|
||||
subjectAccessRequest(id: String!): SubjectAccessRequest @requireAuth
|
||||
}
|
||||
|
||||
input CreateSubjectAccessRequestInput {
|
||||
@@ -29,11 +29,11 @@ export const schema = gql`
|
||||
type Mutation {
|
||||
createSubjectAccessRequest(
|
||||
input: CreateSubjectAccessRequestInput!
|
||||
): SubjectAccessRequest!
|
||||
): SubjectAccessRequest! @requireAuth
|
||||
updateSubjectAccessRequest(
|
||||
id: String!
|
||||
input: UpdateSubjectAccessRequestInput!
|
||||
): SubjectAccessRequest!
|
||||
deleteSubjectAccessRequest(id: String!): SubjectAccessRequest!
|
||||
): SubjectAccessRequest! @requireAuth
|
||||
deleteSubjectAccessRequest(id: String!): SubjectAccessRequest! @requireAuth
|
||||
}
|
||||
`
|
||||
|
||||
@@ -16,9 +16,9 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Query {
|
||||
users: [User!]!
|
||||
user(id: String!): User
|
||||
userName(userName: String!): User
|
||||
users: [User!]! @requireAuth
|
||||
user(id: String!): User @skipAuth
|
||||
userName(userName: String!): User @skipAuth
|
||||
}
|
||||
|
||||
input CreateUserInput {
|
||||
@@ -38,9 +38,10 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
createUser(input: CreateUserInput!): User!
|
||||
updateUser(id: String!, input: UpdateUserInput!): User!
|
||||
createUser(input: CreateUserInput!): User! @requireAuth
|
||||
updateUser(id: String!, input: UpdateUserInput!): User! @requireAuth
|
||||
updateUserByUserName(userName: String!, input: UpdateUserInput!): User!
|
||||
deleteUser(id: String!): User!
|
||||
@requireAuth
|
||||
deleteUser(id: String!): User! @requireAuth
|
||||
}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user