Skip to content

Commit

Permalink
feat: Add "courses" field to collection schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mattobee committed Jun 29, 2024
1 parent fd4db80 commit 54c7f5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions schemas/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ export const collection = defineType({
title: "Description",
name: "description",
type: "text"
}),
defineField({
title: "Courses",
name: "courses",
type: "array",
of: [{ type: "reference", to: [{ type: "course" }] }]
})
]
})
Expand Down

0 comments on commit 54c7f5c

Please sign in to comment.