arnaudrenaud / the-good-corner

Wild Code School live coding project: TypeScript, React, styled-components, Next.js, GraphQL (Apollo), type-graphql, TypeORM, Postgres, Docker, Docker Compose.
1 stars 16 forks source link

allow only to admin #13

Open github-actions[bot] opened 1 month ago

github-actions[bot] commented 1 month ago

https://github.com/arnaudrenaud/the-good-corner/blob/33a900e54c2fb8bcc7a6b2f68e82f1449f14fe7c/back-end/src/resolvers/TagResolver.ts#L14


  @Mutation(() => Tag)
  createTag(@Args() args: CreateOrUpdateTag) {
    // TODO: allow only to admin
    return Tag.saveNewTag(args);
  }
}