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.

Can I use custom id values in Keystone 5

See original GitHub issue

Can i use my own _id values while create new items?

I use ERP system with API which takes to me some documents, where id stores in UUID format, for example 4a7c55d1-d235-11e9-0a80-01800012e538. This document has a lot of references and links between themselves. And i want download this structure for operations, BI, etc, but save references between entities. I tryed use Keystonejs 4, but it impossible to manage items _id. So, i can write exist id to another field (like outer_id), but it brakes Relationships, and get a lot troubles with sync down.

Can i use Keystone 5 and create items with my own _id’s?

Is there solutions, which can help with one-way-sync existing database to Keystone?

Sorry for my bad English and “spasibo” =)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
gautamsicommented, Feb 18, 2021

it is very hard to get this built in to Keystone, check with @timleslie or others if this is in their roadmap.

Also current version of KeystoneJs is going maintenance mode soon https://next.keystonejs.com/roadmap#project-status

0reactions
MurzNNcommented, Mar 1, 2021

I have created a PR that implement this feature for keystone-5 and keystone-next too, it is here: https://github.com/keystonejs/keystone/pull/4826 and it works well on my two projects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Fields - Keystone 6 Documentation - KeystoneJS
Learn how to expand Keystone with your own custom fields. ... Keystone provides a collection of field types which you can use to...
Read more >
Keystonejs admin ui : View field instead of id for relationships
Keystone only shows the name field as a document header or relationship summary. But there is a simple solution to use a custom...
Read more >
Keystone Configuration Options
You do not need to set this value unless you want keystone to use an # existing role with a different ID, other...
Read more >
Chapter 2. Identity Management Integration
This chapter describes how to integrate Identity Service (keystone) with Red Hat Identity Management. In this use case, Identity Service authenticates ...
Read more >
Building an e-commerce app with Keystone - OpenReplay Blog
This tutorial will show how to set up and build a simple e-commerce application using a headless CMS— Keystone JS, an open-source API-driven ......
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