Skip to content

Releases: panter/ra-data-prisma

@ra-data-prisma/dataprovider-v7.2.1

08 Feb 09:51
381f5eb
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v7.2.0

@ra-data-prisma/dataprovider-v8.0.0

Pre-release

@ra-data-prisma/dataprovider-v8.0.0 (2023-11-08)

Features

  • add support for nexus-plugin-prisma-fork (a74633a)

BREAKING CHANGES

  • resulting dialect of the dataprovider is slightly different from the one of nexus-plugin-prisma, so its no longer compatible with the old version

its unclear whether it breaks type-graphql support

@ra-data-prisma/backend-v9.0.0

08 Nov 15:26
Compare
Choose a tag to compare
Pre-release

@ra-data-prisma/backend-v9.0.0 (2023-11-08)

Features

  • add support for nexus-plugin-prisma-fork (a74633a)

BREAKING CHANGES

  • resulting dialect of the dataprovider is slightly different from the one of nexus-plugin-prisma, so its no longer compatible with the old version

its unclear whether it breaks type-graphql support

@ra-data-prisma/dataprovider-v7.1.0

@ra-data-prisma/dataprovider-v7.1.0 (2023-11-07)

Bug Fixes

  • handle default case when a resource cannot be pluralized (dce98b1)

Features

  • add queryOperationNames to allow similar behavior to queryOperationNames (0d9c77b)

@ra-data-prisma/dataprovider-v7.0.1

@ra-data-prisma/dataprovider-v7.0.1 (2023-11-07)

Bug Fixes

  • remove uneeded dependencies in dataprovider (aab16fc)

@ra-data-prisma/dataprovider-v7.0.0

@ra-data-prisma/dataprovider-v7.0.0 (2023-05-05)

Bug Fixes

  • cannot update array of objects when there is an _ids array present (#114) (edd7617)
  • empty reference ids break create (5d484ba)
  • in cases where both _ids and _id are used, there might be confusion (#115) (738071c)
  • typing of args in customize resolve functions (#116) (d6de0b4)

Features

  • disconnect entities when {id: null} or {id: ""} is sent (32693e7)
  • fragments can now extend the default fields (#107) (f45a6df)
  • orderByRelation is now enabled by default (fae06e1)
  • prisma update typegraphql (#126) (4e746f8)
  • references are now added as separate fields with suffix (#111) (5fc2d39)

BREAKING CHANGES

  • orderByRelation is now enabled by default

also updates prisma and type-graphql version (only dev dependencies)

  • aliasPrefix type changed
  • ReferenceArrayField/Input or Referenceinput/Field now require you to add a suffix to the source property:
    _id or _ids (array).

E.g.

consider a relation between User and UserRole. A User has many UserRoles.

new:

<ReferenceArrayField
    label="Roles"
    source="roles_ids" // <-- suffix _ids because it is an array field
    reference="UserRole"
>....

before:

<ReferenceArrayField
    label="Roles"
    source="roles" // <--- old approach
    reference="UserRole"
>....

Reasoning

There was some sanitizing going on to support using the parent field name (e.g. "roles") directly,
without adding a suffix for convenience.

However there were some problems and inconsitency:

  • if you use a custom fragment for a resource ("ResourceView") this sanitizing was already disabled
  • mixing custom fragments with the default behavior lead to cache inconsistencies

@ra-data-prisma/backend-v8.0.0

05 May 10:45
Compare
Choose a tag to compare

@ra-data-prisma/backend-v8.0.0 (2023-05-05)

Bug Fixes

  • typing of args in customize resolve functions (#116) (d6de0b4)

Features

  • orderByRelation is now enabled by default (fae06e1)

BREAKING CHANGES

  • orderByRelation is now enabled by default

also updates prisma and type-graphql version (only dev dependencies)

  • aliasPrefix type changed

@ra-data-prisma/dataprovider-v7.0.0-beta.7

04 Aug 09:34
d6de0b4
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v7.0.0-beta.7 (2022-08-04)

Bug Fixes

  • typing of args in customize resolve functions (#116) (d6de0b4)

BREAKING CHANGES

  • aliasPrefix type changed

@ra-data-prisma/backend-v8.0.0-beta.1

04 Aug 09:34
d6de0b4
Compare
Choose a tag to compare
Pre-release

@ra-data-prisma/backend-v8.0.0-beta.1 (2022-08-04)

Bug Fixes

  • typing of args in customize resolve functions (#116) (d6de0b4)

BREAKING CHANGES

  • aliasPrefix type changed