Skip to content

add MutationField and QueryField to limit field's visibility on either just mutation or query #40

Open
@capaj

Description

@capaj

usage would be

  @MutationField({ castTo: GroupModelAsAdmin })
  async group(
    @Arg({ type: PositiveInt }) id: number,
    @Context ctx: UserSessionContext
  ) {
    return ctx.organisation
      .$relatedQuery<GroupModelAsAdmin>('groups')
      .findById(id)
  }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions