Skip to content

Commit

Permalink
📦 NEW: add topic to subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
vir-air-vent committed Dec 11, 2023
1 parent 82a6342 commit ada000c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions AccessCompanionApi/GraphQl/Subscription.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using AccessCompanionApi.Domain;
using HotChocolate;

namespace AccessCompanionApi.GraphQl;

public class Subscription
{
[Subscribe, Topic]
public Permission OnPermissionCreated([EventMessage] Permission permission) => permission;
}

0 comments on commit ada000c

Please sign in to comment.