26 lines
No EOL
483 B
C#
26 lines
No EOL
483 B
C#
susing IdentityShroud.Core.Contracts;
|
|
using IdentityShroud.Core.Model;
|
|
|
|
namespace IdentityShroud.GraphQL;
|
|
|
|
public class Query
|
|
{
|
|
public string GetHello() => "Hello, world!";
|
|
|
|
public async Task<Realm?> GetRealms(
|
|
Guid id,
|
|
[Service] IRealmService realmService)
|
|
{
|
|
return await realmService.FindById(id);
|
|
}
|
|
}
|
|
|
|
public class Mutation
|
|
{
|
|
public async Task<Realm> RealmCreate(string name)
|
|
{
|
|
Realm r = new();
|
|
|
|
return r;
|
|
}
|
|
} |