Skip to content

Releases: panter/ra-data-prisma

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

27 Jul 18:13
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v7.0.0-beta.6 (2022-07-27)

Bug Fixes

  • empty reference ids break create (5d484ba)

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

27 Jul 14:22
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v7.0.0-beta.5 (2022-07-27)

Features

  • disconnect entities when {id: null} or {id: ""} is sent (32693e7)

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

27 Jul 11:01
738071c
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v7.0.0-beta.4 (2022-07-27)

Bug Fixes

  • in cases where both _ids and _id are used, there might be confusion (#115) (738071c)

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

19 Jul 14:38
edd7617
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v7.0.0-beta.3 (2022-07-19)

Bug Fixes

  • cannot update array of objects when there is an _ids array present (#114) (edd7617)

@ra-data-prisma/dataprovider-v6.9.1

29 May 18:07
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v6.9.1 (2022-05-29)

Bug Fixes

  • buildRaGraphqlDataProvider is not a function (b198952)

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

29 May 18:24
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v7.0.0-beta.2 (2022-05-29)

Bug Fixes

  • buildRaGraphqlDataProvider is not a function (b198952)

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

29 May 17:54
5fc2d39
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v7.0.0-beta.1 (2022-05-29)

Features

  • references are now added as separate fields with suffix (#111) (5fc2d39)

BREAKING CHANGES

  • 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/dataprovider-v6.10.0-beta.2

25 Apr 11:01
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v6.10.0-beta.1

25 Apr 09:03
f45a6df
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v6.10.0-beta.1 (2022-04-25)

Features

  • fragments can now extend the default fields (#107) (f45a6df)

@ra-data-prisma/dataprovider-v6.9.0

09 Dec 14:34
Compare
Choose a tag to compare

@ra-data-prisma/dataprovider-v6.9.0 (2021-12-09)

Features

  • allow to pass IntrospectionSchema directly (53cb49d)