Does anybody know if the “bring your custom ID” fe...
# orm-help
f
Does anybody know if the “bring your custom ID” feature (https://github.com/prisma/prisma/issues/3839) is included in 1.30.0 stable? Or it’s still only part of some beta?
h
It is part of the beta
only works with datamodel 1.1 id: ID! @id(strategy: NONE)
f
@Harshit That’s weird, we are getting the ID. Can you help me understand why it works when it shouldn’t?
In our
seed.graphql
(using prisma reset + prisma seed)
Copy code
Address1: createAddress(
  data: {
    id: "seed-address-1"
    name: "Dean Winchester"
    ....
  }
) {
  id
}

...

connect: { id: "seed-address-1" }
In Prisma datamodel (still like 1.0 syntax):
Copy code
type Address {
  id: ID! @unique
  .....
  createdAt: DateTime!
  updatedAt: DateTime!
}
This is using Prisma Cloud, which currently runs
1.30-beta-4
, but we haven’t changed the
id
syntax
@Harshit Any idea?
h
beta has it 🙂
f
But we don’t use
id: ID! @id(strategy: NONE)
maybe that doesn’t matter?
h
I think we have made it backwards compatible, can you confirm cc @marcus
m
I think bring your own id was implemented separately by @do4gr. So no need for Datamodel v1.1.
@Harshit: I think the issues around that topic can be closed now. Please double check with Tim if the client support is fully there yet. But i think it is.
f
@marcus I think I saw it in a release some days/weeks ago but when I checked the release notes again I couldn’t find it. In that case I guess it’s stable already, right?
h
We have a separate issue for the client so I think we can close the issue that concerns the backend
m
We have also release notes for beta so i can’t tell for sure.
f
ah yes, maybe it was in a beta release. Anyway, thanks!