Skip to content

Primary Key = filename #169

@trovster

Description

@trovster

I am migrating my content from custom repository pattern to Orbit and when I created the model I inserted the filename of the markdown file, as to generate a unique key. This also acted at the route key.

Would it make sense to insert the filename as part of inserting data? This could be treated at the primary key by default. This could be changed by supplying a key (pk) in the frontmatter for Markdown files.

If not, would I be able to do this by extending/overwriting? Would this have to be a custom driver?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions