Skip to content

Commit

Permalink
Merge pull request #22 from CapgeminiInventUK/fix/fixGraphQLSchema
Browse files Browse the repository at this point in the history
Fix/fix graph ql schema
  • Loading branch information
itsrobinm authored Jan 19, 2024
2 parents 26ee6b3 + 970511b commit 707211b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
25 changes: 9 additions & 16 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,18 @@ type School {
}

type ProfileItems {
items: String
banner: String
helpBannerTitle: String
helpBannerBody: String
whatToExpect: String
actionText: String
items: String!
banner: String!
helpBannerTitle: String!
helpBannerBody: String!
whatToExpect: String!
actionText: String!
}

type SchoolProfile {
request: {
items: String
banner: String
helpBannerTitle: String
helpBannerBody: String
whatToExpect: String
actionText: String
}
donate: ProfileItems!
excess: ProfileItems!
request: ProfileItems
donate: ProfileItems
excess: ProfileItems
}

type LocalAuthorityUser {
Expand Down
2 changes: 1 addition & 1 deletion src/repository/schoolProfileRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class SchoolProfileRepository {
await this.collection.updateOne(
{ name },
{
$set: { [key]: value },
$set: { [key]: { test: 2 } },
$setOnInsert: { name },
},
{ upsert: true }
Expand Down

0 comments on commit 707211b

Please sign in to comment.