Releases: panter/ra-data-prisma
Releases · panter/ra-data-prisma
@ra-data-prisma/dataprovider-v7.0.0-beta.6
@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
@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
@ra-data-prisma/dataprovider-v7.0.0-beta.4 (2022-07-27)
Bug Fixes
@ra-data-prisma/dataprovider-v7.0.0-beta.3
@ra-data-prisma/dataprovider-v7.0.0-beta.3 (2022-07-19)
Bug Fixes
@ra-data-prisma/dataprovider-v6.9.1
@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
@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
@ra-data-prisma/dataprovider-v7.0.0-beta.1 (2022-05-29)
Features
BREAKING CHANGES
ReferenceArrayField/Input
orReferenceinput/Field
now require you to add a suffix to thesource
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
@ra-data-prisma/dataprovider-v6.10.0-beta.1
@ra-data-prisma/dataprovider-v6.10.0-beta.1 (2022-04-25)
Features
@ra-data-prisma/dataprovider-v6.9.0
@ra-data-prisma/dataprovider-v6.9.0 (2021-12-09)
Features
- allow to pass IntrospectionSchema directly (53cb49d)