Skip to content

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

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)
  }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions