Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

feat(server): add members mutation & query #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MichelineMedhat
Copy link
Member

No description provided.

packages/server/prisma/schema.prisma Show resolved Hide resolved
Comment on lines +25 to +28
async deleteMember(
@Arg("input", () => MemberInput) input: MemberInput,
@Ctx() ctx: Context
): Promise<typeof DeleteMemberResult> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arguments:

  • MemberId

Return type: you can choose on of

  1. bool: true if deleted / false otherwise
  2. TenantUser | Error: deleted member data or error

We don't need the tenantId as it will be handled by the RLS already

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants