Sub-collections
See original GitHub issueHello!
I have complex model with nested collections. I’m trying to define such model
{
title: { type: String, required: true },
images: {
type: [{
name: String,
image: Types.Url,
thumb: Types.Url,
description: String
}]
}
}
And I get an error Error: Fields must be specified with a type function
@ keystone/lib/list.js:298:9
.
Is it possible to define that collection in keystone? (it is possible in Mongoose)
In admin UI this field should look like list of items with Add, Edit and “Trash” buttons. Add and Edit buttons should open modal dialog.
I am new to keystone, but I want to contribute to this project. And it will be great if you guide me a bit.
Issue Analytics
- State:
- Created 10 years ago
- Reactions:13
- Comments:72 (17 by maintainers)
Top Results From Across the Web
Cloud Firestore Data model - Firebase
Subcollections allow you to structure data hierarchically, making data easier to access. To get all messages in roomA , you can create a...
Read more >Subcollection Definition & Meaning - Merriam-Webster
The meaning of SUBCOLLECTION is a collection (as of books or artwork) that is part of a larger collection. How to use subcollection...
Read more >Create a Firestore subcollection reference - Google Cloud
Create a Firestore subcollection reference. bookmark_border. Stay organized with collections Save and categorize content based on your preferences. Dismiss
Read more >Creating Subcollections - FlutterFlow Docs
Subcollection is best when you have several queries/filters or search on a collection that is based on the other collection.
Read more >subcollections - Wiktionary
EnglishEdit. NounEdit. subcollections. plural of subcollection · Last edited 3 years ago by WingerBot. Wiktionary. This page was last edited on 16 October ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any chance of seeing this in a 4.0.6 beta? Or can we implement sub-collections trusting that this feature will be out someday soon?
+1 I would be interested in an update as well…