Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
fix all resolvers return type of array
Browse files Browse the repository at this point in the history
  • Loading branch information
sharplessHQ authored and GoldingAustin committed May 2, 2023
1 parent 156f239 commit fa3b58a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions applications/server/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,13 @@ type Mutation {
serversParse(campaignId: String!): Boolean!

"""Toggle beacon hidden state"""
toggleBeaconHidden(beaconId: String, beaconIds: [String!], campaignId: String!, setHidden: Boolean): Beacon!
toggleBeaconHidden(beaconId: String, beaconIds: [String!], campaignId: String!, setHidden: Boolean): [Beacon!]!

"""Toggle host hidden state"""
toggleHostHidden(campaignId: String!, hostId: String, hostIds: [String!], setHidden: Boolean): Host!
toggleHostHidden(campaignId: String!, hostId: String, hostIds: [String!], setHidden: Boolean): [Host!]!

"""Toggle server hidden state"""
toggleServerHidden(campaignId: String!, serverId: String, serverIds: [String!], setHidden: Boolean): Server!
toggleServerHidden(campaignId: String!, serverId: String, serverIds: [String!], setHidden: Boolean): [Server!]!

"""Update existing Annotation"""
updateAnnotation(annotationId: String!, campaignId: String!, favorite: Boolean, tags: [String!]!, text: String!, user: String!): Annotation!
Expand Down
2 changes: 1 addition & 1 deletion applications/server/src/store/beacon-resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class BeaconResolvers {
}

@Authorized()
@Mutation(() => Beacon, { description: 'Toggle beacon hidden state' })
@Mutation(() => [Beacon], { description: 'Toggle beacon hidden state' })
async toggleBeaconHidden(
@Ctx() ctx: GraphQLContext,
@RelationPath() relationPaths: Relation<Beacon>,
Expand Down
2 changes: 1 addition & 1 deletion applications/server/src/store/host-resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class HostResolvers {
}

@Authorized()
@Mutation(() => Host, { description: 'Toggle host hidden state' })
@Mutation(() => [Host], { description: 'Toggle host hidden state' })
async toggleHostHidden(
@Ctx() ctx: GraphQLContext,
@Arg('campaignId', () => String) campaignId: string,
Expand Down
2 changes: 1 addition & 1 deletion applications/server/src/store/server-resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class ServerResolvers {
}

@Authorized()
@Mutation(() => Server, { description: 'Toggle server hidden state' })
@Mutation(() => [Server], { description: 'Toggle server hidden state' })
async toggleServerHidden(
@Ctx() ctx: GraphQLContext,
@Arg('campaignId', () => String) campaignId: string,
Expand Down

0 comments on commit fa3b58a

Please sign in to comment.