web icon indicating copy to clipboard operation
web copied to clipboard

Document new $ prefix, replace / deprecate _ prefix [ Prisma 4 ]

Open dpetrick opened this issue 4 years ago • 0 comments

Part of the Prisma 4 effort: The client is deprecating _ prefixes (like _count) in favor of $, like $count. All prefixes in the docs need to be changed. The old syntax will still continue to work, but please coordinate details and actual implementation with the assigned person in https://github.com/prisma/team-orm/issues/151.

Andrew's initial thoughts: we can maybe do this with a regex. Something like _:. However, that won't pick up mentions like _count outside of code blocks. It would be better to have a list of all parameters that have an underscore prefix. I don't know how we would determine this - maybe the engineers can provide a list fairly easily from the code? Either way, this is potentially a wide-ranging set of changes to many docs, potentially causing major edit conflicts. The docs team will have to plan this out carefully.

⚠️ Please coordinate with client engineering team on when this can be done / merged in the docs.

Update 8 June: Alexey will provide more information towards the end of the week. My initial investigation suggests that the docs scope is looking less huge than I first thought, so I'm downgrading to size L.

  • Breaking change - add to upgrade guide
  • Also add note to the reference doc/s above the list of parameters, explaining this change from Prisma 3 to Prisma 4.

Blocked:

  • I'm waiting for information from Alexey.
  • In addition, there's currently a technical discussion about this change to Prisma Client: https://www.notion.so/prismaio/Have-a-prefix-for-query-props-eg-and-groupBy-1cf385a9dac841d1987bd415b6edec01 for notes and discussion

dpetrick avatar May 25 '22 08:05 dpetrick