Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

863 B
Raw Blame
import { ObjectType, Field, ID } from '@nestjs/graphql';

@ObjectType()
export class TeamCollection {
  @Field(() => ID, {
    description: 'ID of the collection',
  })
  id: string;

  @Field({
    description: 'Displayed title of the collection',
  })
  title: string;

  @Field({
    description: 'JSON string representing the collection data',
    nullable: true,
  })
  data: string;

  @Field(() => ID, {
    description: 'ID of the collection',
    nullable: true,
  })
  parentID: string;
}

@ObjectType()
export class CollectionReorderData {
  @Field(() => TeamCollection, {
    description: 'Team Collection being moved',
  })
  collection: TeamCollection;

  @Field(() => TeamCollection, {
    description:
      'Team Collection succeeding the collection being moved in its new position',
    nullable: true,
  })
  nextCollection?: TeamCollection;
}