Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Commit

Permalink
Blog-Topics relation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fi1osof committed Nov 11, 2018
1 parent 587147c commit 090e442
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __tests__/module/schema/index.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ const requiredTypes = [
"deleted",
"hidemenu",
"searchable",
"Topics",
"Blog",
],
prisma: [
],
Expand Down
2 changes: 2 additions & 0 deletions src/modules/schema/database/resource.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
type Resource {
id: ID! @unique
oldID: Int @unique
Topics: [Resource!]! @relation(name: "BlogTopics")
Blog: Resource @relation(name: "BlogTopics")
}

0 comments on commit 090e442

Please sign in to comment.