question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello!

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:closed
  • Created 10 years ago
  • Reactions:13
  • Comments:72 (17 by maintainers)

github_iconTop GitHub Comments

15reactions
ghuroocommented, Mar 8, 2017

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?

15reactions
simonwidjajacommented, Feb 11, 2017

+1 I would be interested in an update as well…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found