UnlyEd / ra-data-graphql-prisma

A react-admin data provider for Prisma v1, used by https://github.com/UnlyEd/next-right-now-admin
https://nrn-admin.now.sh
MIT License
8 stars 0 forks source link

source attribute with object path does not work #9

Open giuvincenzi opened 4 years ago

giuvincenzi commented 4 years ago
export const ExampleCreate = (props) => (
    <Create {...props}>
        <SimpleForm>
            <TextInput source="name" />
            <TextInput source="address.street" />
        </SimpleForm>
    </Create>
);

the address.street is not sent in the mutation variables

// variables in mutation
{
    "data": {
        "name": "theName"
    }
}
Vadorequest commented 4 years ago

@giuvincenzi Have you tested again with the latest 1.0.0 released today? I believe this use case should be covered now. See https://github.com/UnlyEd/ra-data-graphql-prisma/pull/5

Also, see https://github.com/UnlyEd/ra-data-graphql-prisma/pull/8 which isn't directly related but you may find useful.