Skip to content

Commit

Permalink
feat/#131
Browse files Browse the repository at this point in the history
  • Loading branch information
Arios67 committed Apr 3, 2022
1 parent 88ffe32 commit ef8c86c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions ars/src/apis/art/entities/art.entity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Field, Int, ObjectType } from '@nestjs/graphql';
import { Board } from 'src/apis/board/entities/board.entity';
import { Payment } from 'src/apis/payment/entities/payment.entity';
import { User } from 'src/apis/user/entities/user.entity';
import {
Expand Down
3 changes: 2 additions & 1 deletion ars/src/apis/board/entities/board.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
Column,
CreateDateColumn,
Entity,
JoinColumn,
ManyToOne,
OneToOne,
PrimaryGeneratedColumn,
Expand Down Expand Up @@ -37,7 +38,7 @@ export class Board {
@Field(() => User)
user: User;

@OneToOne(() => Art, { eager: true })
@ManyToOne(() => Art, { eager: true })
@Field(() => Art)
art: Art;
}
4 changes: 2 additions & 2 deletions ars/src/common/graphql/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ type Query {
fetchAuctionArtsCount: Float!
fetchAuctionArts(page: Float!): [Art!]!
fetchTimedOutArt(page: Float!): [Art!]!
fetchTransactionCompletedArts(page: Float): [Art!]!
fetchTransactionCompletedArts(page: Float!): [Art!]!
fetchEngaging(page: Float!): [Engage!]!
fetchArtistWorks(artId: String!): [Art!]!
fetchLikeArt(page: Float): [Art!]!
Expand All @@ -172,7 +172,7 @@ type Query {
type Mutation {
createArt(createArtInput: CreateArtInput!): Art!
uploadArtImage(files: [Upload!]!): [String!]!
addLikeArt(artId: String!, likeId: String): Boolean!
addLikeArt(artId: String!): Boolean!
login(email: String!, password: String!): Token!
restoreAccessToken: Token!
logout: String!
Expand Down

0 comments on commit ef8c86c

Please sign in to comment.